University of Iowa Computer Science Department

Quiz 02

1. Declare an integer variable named pennies that is initialized to 273. Write a statement that will determine how many dollars are in that many pennies.

2. Create a random object named generator. Then create a random integer in the interval 0 to 9 and multiply it by 50 placing the result in an integer variable named result.
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: .