C++ File 2
C++ File 2
____________ ______________
Signature of Signature
Shamim Sir of
index
1. WAP in C++ to display a name on the output screen.
4. WAP in C++ to calculate and print electricity bill and accept the number of units consumed from
the user (using else if ladder).
9. WAP in C++ to accept the day number and display the corresponding day name.
10. WAP in C++ to accept a character from keyboard and check whether it is a word or comment.
welcome to greetings
13. WAP in C++ to accept Rollno, name and marks of 5 subjects if a student(use array to store the
marks).
27. Wap in c++ to find the greatest number among three numbers
Que 5 write a program in c++ to calculate and print the sum of two no using class and object
Que 6 write a program in c++ to implement a class rectangle
Que 7 write a program in c++ to calculate and print sum of first n natural number.
Que 12 write a programe in c++ to calculate and print sum of digit of number
Que 13 write a programe in c++ to calculate and print check wheather the number is
palimdrome
Que 14 write a progame in c++ to calculate and print check wheather the number cirmstro no
Que 15 write a program to calculate and print the prime no
Que 16 write a programe in c++ to accept the day number and display the corresponding day name
Que 17 write a programe in c++ to accept a charcter from the keyboard and check wheather It is a
vowel or a consonant.
Que 18 write a menu based program in c++ to accept a number from 1 to 5. 1 namesta 2 hello 3
good morning 4 good night 5 exit
Que 19 write a program in c++ add the element of an array
Que 22 write a programe in c++ to display 4 different greeting message using function
que 23 WAP in C++ to accept three number through the keyboard and display the largest of these
number.
Que 24 WAP to accept the marks of 5 subjects and display the grade of the student
-while
-do-while
-for loop
Que 26 WAP to print reverse counting from 100 to 1.
Que 27 write a programe in c++ and make calculator using function