Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. (20 points) Some women hyphenate their last names after getting married and others replace their last names with their husband's last name. Develop an
2. (20 points) Some women hyphenate their last names after getting married and others replace their last names with their husband's last name. Develop an interactive C++ program that reads in the first and last name of a woman and the last name of the man she married. The program should determine and print the women's name in both formats. The program should print to an output file with a file name typed in by the user. The output information include the women's original name, the women's new name with her last name hyphenated with her husband's last name, and the women's name with the husband's last name replacing hers. Print the names on separate output lines. For example, if the user enters Emily for the women's first name, Yancey as the women's last name, and Jones as the last name of the husband. The program would print the following to the output file: Emily Yancey Emily Yancey-Jones Emily Jones oShtam
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started