Assignment 2

Assignment 2 - Intro to Programming in C Programming...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Intro to Programming in C Programming Assignment 2 Due Monday, October 11 th 9 AM You will write a program that will play a number guessing game . General Requirements Write a program that reads numbers from a file called “answers.txt” . Your program will ask the user to enter the number of games they wish to play Your program will open the answers.txt file read in one number at a time and repeat this for the number of games the user wants to play. For this assignment the test file will contain at least 15 numbers. When the number of games has been played, the program will end A sample of an input file that you can use to test your program is included with the assignment. A preprocessor directive must be used to define the maximum number of guesses as 10 If the player has used up all of their guesses, a message that the game is over should be displayed along with the number they were trying to guess. You must
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/26/2010 for the course COP 2220 taught by Professor Woodworth during the Spring '08 term at FAU.

Page1 / 2

Assignment 2 - Intro to Programming in C Programming...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online