Question: Write a C++ program that uses C-strings to read the first name (C-string),last name (C-string), current address (C-string), permanent address (C-string), age(int) and GPA (double)
Write a C++ program that uses C-strings to read the first name (C-string),last name (C-string), current address (C-string), permanent address (C-string), age(int) and GPA (double) and then prints it back to screen formatted neatly and with labels. The program will then concatenate last name with first name separated with a comma and then prints it to screen. The program will then compare the current address and permanent address and display the following message if they are similar "Your current and permanent addresses are similar"; otherwise it will print "Your current and permanent addresses are different. Do you want us to send you the letter to both addresses?". Read the answer and then print "OK".
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
