Questions C++ If Else
Questions C++ If Else
Q2: Write a program that stores your name, your complete registration number, your gpa, and your
current semester fee into variables with appropriate names and data types. What will be the new fee if
the university decides to increase the semester fee by a percentage equal to the last three digits of your
registration number (i.e., the increase for CS12356050 will be by 50%, 1% for SE24125001, and 102% for
CS12345102). Display the new semester fee along with your details in separate lines. A sample output is
shown below (You should enter your own details).
Name: Ali
Q3: Write a program that ask user to enter three numbers. The program should find and display the
largest number among three numbers.
Q4: In Ascii code the value of A to Z are 65 to 90 and a to z are 92 to 122 and for 0 to 9 are 48 to 57.
Write a program that determine whether the giver entered character is a capital or small or a digit. If
user enter any other character then program should display “Invalid Character Input!”.
Q5: Assume that Courtyard of Kust Physics department is 20-meter-long and 15 meters wide. The
expenditure of flooring the courtyard is at the rate 250 per square meter. Write a program that calculate
and display the total area of the courtyard and total cost rate of the courtyard. If area of courtyard is
equal to 150 per square meter then the expenditure rate is same as default total cost. If area of
courtyard is more than 150 per square meter and less than or equal to 250 per square meter then the
expenditure rate is 200. If area of courtyard is more than 250 per square meter and less than or equal to
300 per square meter then the expenditure rate is 250. If area of courtyard is more than 300 per square
meter then the expenditure rate will 400.
Note: Its better you to get input from user in all Questions. Best of Luck.