Lab092608[1] - game times average 3.5 hours Create a...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CIS 105: 09/26/08 Ch 3 DO NOT E-MAIL THE ASSIGNMENTS. I WILL CHECK IN CLASS ON 09/29/08. 1. Write a program that prompts the user to enter a decimal number and then outputs this number rounded to two decimal places. 2. Use JOptionPane to complete the following: You are the owner of CAU-Intown Parking. Your parking lot is adjacent to Panther Stadium. The Atlanta City Council has awarded you a contract to provide parking for the upcoming game. The stadium will pay you $7.25 per ticket sold to people parking in your lot. You have room for unlimited cars, and each car carries 5 passengers. Besides the per- ticket subsidy from the stadium, you decide to charge drivers $1.25 per hour to park, and
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: game times average 3.5 hours. Create a program whose main method holds the following variable declarations: lotCapacity, avgPassengersPerCar, feePerHourPerCar, ticketPrice, hoursForGame, totalPeople, totalParking, totalTickets, grandTotal. totalParking = lotCapacity * SeePerHourPerCar * hoursForGame totalPeople = lotCapacity * avgPassengersPerCar totalTickets = totalPeople * ticketPrice grandTotal = totalParking _ totalTicket You are responsible for creating a program that will prompt the Data Entry Spet to input the total number of cars that entered the lot on game. The program should perform all calculations listed above, and display the results in a dialog box....
View Full Document

This note was uploaded on 10/04/2010 for the course COMPUTER S 106 taught by Professor Moore during the Spring '08 term at Clark Atlanta.

Page1 / 2

Lab092608[1] - game times average 3.5 hours Create a...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online