
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Professor: Swigger; Class: Symbolic Processing; Subject: Computer Science/Computer Engineering; University: University of North Texas; Term: Unknown 1989;
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Due Thurs. September 18
Write a "guess the month you were born" game where the computer tries to guess the Month in a minimum number of guesses. First, the computer selects a month between January and December, prints it out, and prompts the user for an answer with please enter "Y" or "YES", "B" or "TOO BIG", "S" or "TOO SMALL". If the user enters "YES", the guess is correct, the game is over, and the computer prints the number of tries it made to get the correct month. If the month is earlier or later than the correct month, the computer makes another guess.
For example: