Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  


Shop
CPP All : Building Expressions and Formulas
Concept Learning Code Sheets

Building speed formula for different units of measurement #1822

Formula building can be done for different units using different divisors.

Formulas with powers and roots #1824

Creating formulas that contain powers and square root.

Simple interest and amount formulation #1826

Calculating simple interest and amount by using typical formulas.

Finding area and circumference of a circle #1828

Area and circumference of circle with use of constant value of PI

Swapping two variables using temporary third variable. #2493

Swapping of value between two integer variables using the intermediate third variable.

Swapping two variables without using third variable. #2497

Swapping of value between two integer variables without using the intermediate third variable.

Area of Triangle using base and height #1787

Finding the area of a triangle when base and height is given

Simple expression forming #1820

Forming expressions with simple variables.


Solved Problems

Average of three integer numbers, double output #2331

Write a C++ program to find average of three integer numbers given by the use

Write a C++ program to find average of three integer numbers given by the user. The output can have fractional double precision values as well.

Finding Errors #2997

Find errors in the following program and write the program with correct synt

Find errors in the following program and write the program with correct syntax.

multiples of an integer #3070

Write a program to display 2nd, 4th and 6th multiple of the input integer num

Write a program to display 2nd, 4th and 6th multiple of the input integer number.

Output writing – forming expression within cout #5345

Write output of the following code. Assume that related header files are incl

Write output of the following code. Assume that related header files are included.

int main()
{
  int a=10,b=13,c;
  cout<<(c=a+b/a)<<" ";
  cout<<(a=b+c);
  return 0 ;
}

Evaluating expressions #5358

What will be the value of c after evaluating the given expressions on the lef

What will be the value of c after evaluating the given expressions on the left side for following two set of statements. Also justify your answer

(i)  int j=5; int c=(5*++j)%6;
(ii) int j=5; int c=(5*j++)%6;

Code Sheets:8  Solved Problems:5 
×
Introductory Sessions Beginning to Program Tokens Keyword and Identifiers Data Types Variables and Constants Operators Simple User Input Building Expressions and Formulas Simple Real World Problems Simple If and If Else Multiple-Nested-Ladder of If Else Switch case selection Simple Loops Tricks in Loops - break continue scope Loop Applications - Handling numerals Series printing loops Nested Loops Pattern printing loops Number Varieties and Crunches String Handling (Null Terminated) Strings - string class type Functions (Built-in) Functions - user defined Functions Reference Passing/Returning Arrays Concepts and 1-D Arrays Array Data Management Two dimensional arrays and Matrices Structures Basics Structures passing/returning 2D Array Memory Addressing Display Using IO Manipulation Display Using C Formatting Tricks User Defined Data Types Enumerated Types Preprocessor Directives And Macros Exception Handling Programming Paradigms and OOPs Advantages Abstraction and Encapsulation Polymorphism Inheritance Function Overloading Concepts Function Overloading Varieties Function Overloading Special Cases Defining Classes Creating and Using Class Objects Class Members Accessibility Class Function Types Inline Functions Constant Functions Nesting of Functions Class Members Scope Resolution Static Members in a Class Array of Objects Constructor Concepts Default Constructor Parameterized Constructor Copy Constructor Constructor Overloading Destructors Inheritance Fundamentals Public Derivations Private and Protected Derivations Multiple Inheritance Multi-Level Inheritance Class Nesting Data File Concepts Handling Text Files Handling Binary Files Pointer Concepts Pointer and Arrays Pointers and Functions Object Pointers This Pointer Linked Lists Stacks Queues


Back