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

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

View Full Document Right Arrow Icon
CIS 105: Problem Solving & Programming Lab 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
Image of page 1

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

View Full Document Right Arrow Icon
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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern