Question

Visual Sutdio C++

Program Specifications: A school cafeteria is giving a survey to its students to improve their lunch menus. Use the file cafe

.txt

Cheese Pizza Hamburger Y Fish Sticks Y Mystery Meat Cheese Pizza Hamburger N Fish Sticks N Mystery Meat Cheese Pizza Hamburge

0 0
Add a comment Improve this question Transcribed image text
Answer #1

#include<iostream>

#include<fstream>

using namespace std;

int main(){

ifstream myfile;

myfile.open("cafetaria.txt");

while(!myfile.eof()){

// here we iterate each line and keep a count of likes and dislikes per itm and then display it

}

myfile.close();

}

Add a comment
Know the answer?
Add Answer to:
Visual Sutdio C++ .txt Program Specifications: A school cafeteria is giving a survey to its students...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT