Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use random numbers for .txt . Check for errors when file is open and use Object Oriented Program ONLY! A school cafeteria is giving a

image text in transcribedUse random numbers for .txt . Check for errors when file is open and use Object Oriented Program ONLY!

A school cafeteria is giving a survey to its students to improve their lunch menus. Use the file cafeteria.txt file to input the results of the survey into a 2- dimensional array to hold the counters for the survey. The file will hold values for a string menu item, a 'Y' if the student liked the food item and a 'N' if the student disliked the food item. Once the file has been processed and the 2-dimensional array set up, display the results in group form such as: Food Item Cheese Pizza Hamburger Fish Sticks Mystery Meat Like Dislike 30 1 2 2 1 03 Be sure to use pointer notation where applicable. A school cafeteria is giving a survey to its students to improve their lunch menus. Use the file cafeteria.txt file to input the results of the survey into a 2- dimensional array to hold the counters for the survey. The file will hold values for a string menu item, a 'Y' if the student liked the food item and a 'N' if the student disliked the food item. Once the file has been processed and the 2-dimensional array set up, display the results in group form such as: Food Item Cheese Pizza Hamburger Fish Sticks Mystery Meat Like Dislike 30 1 2 2 1 03 Be sure to use pointer notation where applicable

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

Students also viewed these Databases questions

Question

When do you put parentheses ( ) around a number?

Answered: 1 week ago

Question

9. Describe the characteristics of power.

Answered: 1 week ago

Question

3. Identify and describe nine cultural value orientations.

Answered: 1 week ago