Question: use c + + with namespace std; with the file name names.txt with these names in it . Bert Ernie Big Bird Cookie Monster Grover

use c++ with namespace std; with the file name names.txt with these names in it.
Bert
Ernie
Big Bird
Cookie Monster
Grover
Stater
Waldorf
Fozzie
Swedish Chef
Dr. Bunsen Honeydew
Beaker
Animal
Gonzo
Rowlf The Dog
Rizzo The Rat
Miss Piggy
Floyd Pepper
Dr. Teeth
Sweetums
Janice
Pepe The King Prawn
Camilla The Chicken
Mahna Mahna
Bobo The Bear
Lew Zealand
What are computers good for if not for playing games? Just ask any of our younger students, NOTHING! That's what!
We're going to play a guessing game - WITH FILES! (the uppercase denotes excitement)
The rules are simple, you've got a file of names (provided by me) and a player gets 10 attempts to guess a name in the file. Simple, right?
Your game will minimally hit the following benchmarks:
Menus! (10 points)
Control the flow of the game
Start new game
Quit playing
View attempts (stored on file)
View all time wins (stored on another file)
Functions! (20 points)
Entering a name to guess
Checking that name against those in the file
Command and control functions that you'll need to play
File Operations! (10 points)
Read and use name.txt (provided)
Read, use and write to game attempts file
Read, use and write to winners file
Loops! (20 points)
10 attempts per game
Keep the game running as long as the user wishes
Check the names in the file
Good User Design (20 points)
Make sure I know what's going on as the user. That means good user prompting, control of the outputs to the screen, clearing where necessary, and keeping the user engaged as they make those guesses!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!