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
Develop a C++ program to get the temperature and print the following status according to the given temperature by using the else if ladder statement in the function.
1. T<=0 "Its very very cold"
2. 0 < T < 0 "Its cold"
3. 10 < T < =20 "Its cool out"
4. 20 < T < =30 "Its warm"
5. T>30 "Its hot"
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.
Develop a C++ program to get the temperature and print the following status according to the given temperature by using else if ladder statement in function.
1. T<=0 "Its very very cold"
2. 0 < T < 0 "Its cold"
3. 10 < T < =20 "Its cool out"
4. 20 < T < =30 "Its warm"
5. T>30 "Its hot"
Construct a C++ program to find the square of a number using default arguments and inline functions
Repeating & Non-Repeating Numbers
Given a list of numbers, find and print, the first number that occurs only once in the list and the first number that occurs more than once in the list.
The input will be a single line containing space-separated integers.
The first line of the output should contain the first non-repeating number. The second line of output should contain first repeating number. If there is no number fitting the given criteria, print "None" instead.
For example, if the given list of integers are 5, 5, 4, 7, 4, 1, 11 , the first non-repeating number is 7 and the first repeating number is 5.
Sample Input 1
5 5 4 7 4 1 11
Sample Output 1
7
5
Sample Input 2
1 2 3 4 5 6 7 8 9
Sample Output 2
1
None