Example2 - cost = Free t 30 3 30 < t 60 5 60...

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

View Full Document Right Arrow Icon
Quiz 1: IF Statements ASE 201 (13594) Write the code (not a complete program) that 1. Reads a value for the time a car is parked in a parking garage, t 2. Calculates the cost of parking
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cost = Free t 30 3 30 < t 60 5 60 < t 120 8 t > 120 3. Displays the time and cost...
View Full Document

Ask a homework question - tutors are online