Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ Basic Version please Change the previous lab as described below. The name of an input or output file can be stored in a variable.
c++ Basic Version please
Change the previous lab as described below. The name of an input or output file can be stored in a variable. Replace the named of the output file: student. txt with the name of the student. For instance, if the user enters Olivia Chen, the name of the output file is Olivia_Chen.txt. You may assume that each name consists of two words and that they are separated by one space. Notice that the space is to be replaced with underscore. Write a program that prompts the user to enter a student's name, major, hobby, and work. Here is an example of the program's screen: Name: Olivia Chen Major: computer science Hobby: hiking Work: mobile app developer Once the user has entered the requested input, the program creates an output file named Olivia_Chen.txt containing the following text using the input data: My name isStep 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