Read 10 integers from the keyboard in the range 0 - 100, and count how many of them are
larger than 50, and display this result.
Swap the content of two variables without using a third variable.
Construct a C++ program to find the square of a number using default arguments and inline functions
Create the class Box with attributes length, breath and height to find the volume of a box. Assign the values for data members using copy constructor and display the result. Finally free the resources of data objects using destructor member function. (Note: Volume of a box = length * breath * height)
RUN TIME INPUT:
5.2
3.3
15.5
Output :
265.98
Create the class Box with attributes length, breath and height to find the volume of a box. Assign the values for data members using copy constructor and display the result. Finally free the resources of data objects using destructor member function. (Note: Volume of a box = length * breath * height)
Create the class Person consisting of data members person_name, age, height and weight. Use constructor default construcor and parameterized constructor to assign values for data members and display() member function is used to display the information of person fitness. Finally free the resources of data objects using destructor member function.
In Sachin's birthday party, he organize a game, in which numbered plates are hanged on the wall. We have to hit by a ball on plate, if the plate numbered having exactly three three's in it, you win game.
Write a program, to count the numbers from range(both the numbers inclusive), which have exactly three three's.
Input Format:
A line corresponds to 2 integer which represents range (both are inclusive). Default integer is 200 and 2000,
Output format:
A line corresponds to a integer which represents the count of numbers which is having exactly three three's in it.
Construct a C++ program to find the square of a number using default arguments and inline functions
Question :Develop a C++ code to get a string for the following pattern display using io manipulators.
Test case 1: Input: KSRCT
Output:
K
KS
KSR
KSRC
KSRCT
PLATE GAME USING FUNCTIONS
Plate Game
In Sachin's birthday party, he organize a game, in which numbered plates are hanged on the wall. We have to hit by a ball on plate, if the plate numbered having exactly three three's in it, you win game.
Write a program, to count the numbers from range(both the numbers inclusive), which have exactly three three's.
Input Format:
A line corresponds to 2 integer which represents range (both are inclusive). Default integer is 200 and 2000,
Output format:
A line corresponds to a integer which represents the count of numbers which is having exactly three three's in it.