University of Iowa Computer Science Department

Quiz 04

1. Using a Console application, prompt the user for a score and print "Hawks beat Ohio State!!!" if the score is greater than 40 else print "Nice try Hawks!".

2. Define a class called Die that includes one instance variable named "faceValue". Write a ToString method the returns the string representation of the value in faceValue. Note: you do not have to include anything else in the class!
UI CLAS CRA ACM Valid CSS! Valid XHTML 1.0 Transitional Level Double-A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0 Cynthia tested
| Modified: .