Use CPP
1) Parking charge application: A parking garage charges a $20.00 minimum fee to park for up to 3 hours. The garage charges an additional $5.00 per hour for hour or part thereof in excess of 3 hours. The maximum charge for any given 24-hour period is $50.00. Assume that no car parks for longer than 24 hours at a time. Write a program that calculates and prints the parking charge for each of 3 customers who parked their cars in this garage yesterday. You should enter the hours parked for each customer. Your program should save the result in a array of Customer. The class customer is the following:
class customer{ string plate; float hour; float fee; }
Your program should use the function calculateCharges to determine the fee for each customer. You should print the result for the 3 customers in the following format:
Plate Hours Charge
132AAC 1.5 20.00
236URT 4.0 25.00
390ROP 24.0 50.00
TOTAL 29.5 95.00
In doing this question make sure to keep the array of customer as global variable.
Please send me the screenshot of output too.
Thanks
In: Computer Science
Java.
Part 1 of 4 - Amusement Park Programming Project
Requirements:
Class:
Ticket – models admission tickets.
Instance Fields:
Constructors and Methods:
In: Computer Science
Park Crest Hospital is looking into the possibility of upgrading its patient tracking information system. The current system is a management information system (MIS) that maintains records on the active status of patients residing in the hospital at a given moment. It ties into patient medical treatment files and financial history files. Thus it is possible to determine the current disposition of patients residing in the hospital (e.g., room number, telephone number, attending physicians, attending nurses, etc.); to access facts about the patient’s prior medical history; and to access financial data on current and past charges made to the patient.
The current MIS is more than seven years old. In view of changes in information storage and retrieval technology that have recently occurred, as well as the current system’s inability to deal with changes that have been made to handle the patient medical treatment files, Park Crest management has decided to upgrade its patient tracking information system. Dr. Ralph Kopecky is made head of a task force to identify possible systems that can replace the existing one.
A one-month search unearths two products that are good candidates. Each is an off-the-shelf product that will be modified by the vendor to fit into a client’s existing environment. After lengthy discussions with the vendors, Dr. Kopecky developed the cost and benefit data that appear in the accompanying exhibit. He will employ these data to educate members of the Executive Management Committee about costs and benefits associated with the alternative solutions.
|
Item |
System A |
System B |
|
Purchase price |
2,300,000 |
1,600,000 |
|
5-year savings compared to using current system |
4,100,000 |
2,700,000 |
|
Cost of conversion from old to new system |
325,000 |
300,000 |
|
Annual maintenance cost (includes salaries of full-time support personnel) |
275,000 |
200,000 |
Questions:
In: Finance
Case Scenario Mr Park is a heart patient who had a heart bypass recently. He has been the sole breadwinner in the family but ever since his heart bypass, he is not able to continue working. His wife is a homemaker and also his main caregiver. The couple has three children. Eldest son Ethan (aged 32), has recently gotten married and moved out. His relationship with his parents is amicable. However, he still relies heavily on his parents for financial support, as his employment is not stable. This creates a huge amount of stress on both Mr and Mrs Park as they themselves are worried about their financial situation, especially after Mr Park's heart bypass. Youngest son Mark (aged 18) is closest to the mother. He suffers from social phobia and does not attend school. His symptoms started around the time of Mr Park's discharge from hospital. He is of age to be enlisted for National Service (NS), but he might not be able to go through military training due to his psychological condition. Mindful of his condition, the parents give him a lot of space and make no demands of him. He plays computer games at home most of the time. Their second daughter Jill (aged 26) is currently the sole breadwinner of the family. She works as an administrative assistant and contributes some money to her parents. When she was 19, she quit university after her first semester and decided to start working because she felt that her eldest brother was continuing to rely on parents for financial support. She often will feel very angry that her parents depend on her so much and do not seem to insist that her eldest brother contribute. She also feels that her parents are over protective of her younger brother. There are constant quarrels between both patient and his wife over the issues of the children and also over care for him, at times escalating into shouting marathons. Two weeks ago, tired of all the fighting, they decided to stop talking altogether. Now, they are no longer quarrelling or shouting at each other, but instead are locked in a "cold war”. Soo words Guiding Questions Read the case scenario above. For the purpose of the reflection, imagine that this is your family, and that you are another son/daughter in this family. • 1. What, in your opinion, is contributing to the family situation? 2. How would you respond as a member of this family? 3. Why would you respond in the way(s) stated for Question 2 above? Explain. (500 words)
In: Psychology
Research at least five of your neighboring states and identify all of the different types of property that are subject to taxes in those states. ((I LIVE IN NEW YORK)
In: Accounting
What is Varshney’s argument for why lower caste Hindus in India overall have fared better in the southern states compared to the northern states since independence?
In: Economics
explain in detail United Kingdom bond market with example and charts
In: Finance
Why Fiscal Regimes matter for Fiscal Sustainability in United Kingdom
In: Economics
examples in United Arab Emirate referring the distribution and redistribution of income??
In: Economics
Comparison and Contrasts of United Kingdom and Haiti Health Care Systems?
In: Nursing