Exam 1- 2013

That includes a docstring a def main any necessary

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (or artist) in the history of music. If the user guesses your favorite band/artist/etc., compliment their taste. Otherwise, tell the user they are incorrect and prompt them to try again. Repeat these actions until the user guesses correctly. CS 115 Exam 1, Spring 2013 Page 6 of 8 Problem 3: A complete program (30 points) For this problem, you must write a complete program. That includes a docstring, a def main(), any necessary library imports, etc. Read the instructions carefully before you start coding! If you get stuck, try to maximize your partial credit. Your program should do the following: 1. Ask the user to enter the number of students in a class. If the user does not enter a valid positive integer, print an error message and exit the p...
View Full Document

This note was uploaded on 02/08/2014 for the course CS 115 taught by Professor Staff during the Fall '08 term at Sonoma.

Ask a homework question - tutors are online