Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Michael V. Mannino

3rd Edition

0071107010, 978-0071107013

More Books

Students also viewed these Databases questions

Question

5. Identify the logical fallacies, deceptive forms of reasoning

Answered: 1 week ago

Question

6. Choose an appropriate organizational strategy for your speech

Answered: 1 week ago