Write a program that prompts the user for his/her first name and last name. Then
ID: 3632836 • Letter: W
Question
Write a program that prompts the user for his/her first name and last name. Then print the last name in capital case and put dashes under the last name. Finally, output a farewell message by using the user's first name.**Example:**
Enter your first and last name: Mark White
Your last name is spelled:
W H I T E
- - - - -
Good day, Mark.
----------------------------------------------------------------------------
Thank you everybody for your help
Explanation / Answer
#include #include #include using namespace std; int main() { string fname,lname; coutfname; cin>>lname; int i=0; char c; while (lname[i]) { c=lname[i]; c=toupper(c); coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.