Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ 6) Files and File Operations A.) We're going to create a new menu of things, menuOfMoreThings, that will again allow the user to choose
C++
6) Files and File Operations A.) We're going to create a new menu of things, menuOfMoreThings, that will again allow the user to choose an item. Validating this time is optional. The user can choose one of five topics from the menu, and we include an option on the menu to quit. Reproduce the menu allowing the user to go again, or quit. Instead of displaying the choice as console output, this time call a function called writeThings that will write the write the information to the file, myOstream. Write the name of the item, and number of times it has been selected so far. So your sample output line might appear as follows - Shoe strings 1 USB drives 1 Shoe strings 2 Follow that the function prototypes that exist. Notice the file is open and it is being passed to the functions. This is typical. Match your menu as shown below (less the boxes, of course). Please choose a favorite from the menu: 1. Pineapples 2. Shoe strings 3. Drill bits 4. USB drives 5. Toothpaste 6. Quit Your choiceStep 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