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.
The teacher has fed up with the students making noise in the class room, so in order to make them quite, she thinks of a task - "Asks them to count the number of vowels in the name". So teachers said any one student name, and students have to tell the number of vowels in the name.
So, help the teacher by writing a program using functions to find the number of vowels in the name.
Input Format: Input consists of a string.
Output Format: Output consists of an integer saying the number of vowel in the given word.
Refer sample Input and Output for further specifications.
The teacher has fed up with the students making noise in the class room, so in order to make them quite, she thinks of a task - "Asks them to count the number of vowels in the name". So teachers said any one student name, and students have to tell the number of vowels in the name.
So, help the teacher by writing a program using functions to find the number of vowels in the name.
Input Format: Input consists of a string.
Output Format: Output consists of an integer saying the number of vowel in the given word.
Refer sample Input and Output for further specifications.
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
Implement a C++ program to overload the function named as sum, to perform sum of two integer and perform sum of float two number respectively.
Construct a C++ program to find the square of a number using default arguments and inline functions