Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 choice

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

Medical Image Databases

Authors: Stephen T.C. Wong

1st Edition

1461375398, 978-1461375395

More Books

Students also viewed these Databases questions

Question

2. To compare the costs of alternative training programs.

Answered: 1 week ago