Join Regular Classroom : Visit ClassroomTech

C++ Coding Question 2

Write a C++ Program that requests and displays the information shown below. Note that the program should be able to accept the first names of more than one word. Also, note that the program adjusts the grade downward that is up to one letter.
What is your first name? Betty Sue
What is your last name? Yew
What letter grade do you deserve?B
What is your age?22
Name: Yew Bretty Sue
Grade: C
Age: 22
[Note: Test the data with minimum of two inputs]

  • After taking integer value, if we want to take a string as input, there we must need cin.get() between them.

  • cin.getline(string_name, size) General Syntax.

Categories
Pages
Recent Posts