Calculate and display running total of yesterday receipts

Assignment Help Basic Computer Science
Reference no: EM13219742

A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Write an application that calculates and displays the parking charges for each customer who parked in the garage yesterday. You should enter the hours parked for each customer. The program should display the charge for the current customer and should calculate and display the running total of yesterday's receipts. The program should use the method calculate-Charges to determine the charge for each customer. Your output should appear as follows: Enter number of hours (a negative to quit): 2 Current charge: $2.00, Total receipts: $2.00 Enter number of hours (a negative to quit): 10 Current charge: $5.50, Total receipts: $7.50 Enter number of hours (a negative to quit): -1

Reference no: EM13219742

Questions Cloud

Write a program that prompts the user : Java: Write a program that prompts the user to enter the number of students and each student's name and score, than display the name of the student with the highest score.
What is a corporate strategy : What line of work is the company and what products or services does the company provide and From a strategy perspective, what is a corporate strategy
What drives excessive technology investments in each model : Explain how either the Newhouse model or the Physician Workshop model could explain why hospitals might inefficiently over-invest in expensive, new technologies. What drives excessive technology investments in each model
Write the definition of a class counter containing : Write the definition of a class Counter containing: An instance variable named counter of type int An instance variable named limit of type int . A constructor that takes two int arguments and assigns the first one to counter and the s..
Calculate and display running total of yesterday receipts : calculate and display the running total of yesterday's receipts. The program should use the method calculate-Charges to determine the charge for each customer.
Compute the maximum safe diameter w of the port : The vessel will contain gases at pressures up to 210.0 MPa. The student's design calls for an observation port on the side of the vessel (see diagram below). The bolts that hold the cover of this port onto the vessel can safely withstand a force o..
Write a program for line clliping : Write a program for line clliping. Take co-ordinate of 2 point as input and also take 4 co-ordinates of window. It should clip the line outside the window. Dont use built in function like line or rectangle to draw line or rectangle.Use dda line al..
Determine what is the amount of excess reserrves : This bank can safely expand its loans by what amount c.by expanding its loans by this amount in part (b), its checkable deposits would expand to what amount (if all loans were made to ch3ecking account customers)
What stable monetary policy has been highly erratic : The velocity of M1 money has moved erratically in the past several years because Answer of low and stable rates of inflation of regulatory changes allowing banks to pay interest on checkable deposits interest rates have been stable monetary policy..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Estimate for risk management in accompanying data

Estimate for risk management as shown in accompanying data, which vulnerability must be evaluated for additional controls first? Which one should be evaluated last?

  Creating project organization in enterprise business

Organization structures generally used to create a project organization in an enterprise business environment.

  Explain johnson-johnson-s approach for it infrastructure

Discuss Johnson & Johnson's Approach ro providing an IT infrastructure to support its one-face-to-the-customer strategy?

  Use active directory to establish security group memberships

How would you manage creation of novel user accounts in this organization? Utilizing Active Directory to establish security group memberships or manual creation and security.

  Display the name of the server as well as any cookie

Now try and see what happens if this variable is declared as a JSP scriptlet. c.Also display the name of the server as well as any cookie information that you can find.

  Will autonation can continue to be successful

How have they responded to pressures from its competitive environment? How does it provide value to its customers? Do you think AutoNation can continue to be successful?

  Solve decanting problem using euclidean algorithm

Use Euclidean algorithm to solve decanting problem for decanters of sizes 1317 and 1075. Or we can say, determine integers x and y.

  Numbers as 4-bit words in 2''s complement form

Q. Assume the following numbers are represented as 4-bit words in 2's complement form. Perform the following operations and identify, in each case, whether or not an overflow occurs

  Explaining pros and cons of coralcdn

Provide a summary of CoralCDN. Contrast its operation with that of Akamai. What the pros and cons of CoralCDN (as compared to Akamai)?

  How many strings will be read

You should read a list of strings from a data file (using scanf), and find the minimum and maxium values of the string data. The input file format will start with a single integer that indicates how many strings will be read, and then lists those ..

  Write an update statement to change the phone number

Write an UPDATE statement to change the phone number of employee with EmployeeNumber 11 to 360-287-8810. Run this SQL statement.

  Write dimensions of memory containing bytes of storage

Write down the dimensions of a memory containing 1mb(2^20) bytes of storage? How large would the MAR be? how many bits are sent to the row column decoders?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd