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
1. Quiz Company uses activity-based costing to determine product cost. The accounting department identified the following overhead activities, costs, and activity drivers for the coming year.
|
Activity |
Estimated cost |
Activity driver |
Activity capacity |
|
Setting up equipment |
$120,000 |
Number of setups |
300 |
|
Ordering materials |
90,000 |
Number of orders |
9,000 |
|
Maintaining machines |
210,000 |
Machine hours |
21,000 |
|
Total overhead |
$420,000 |
The following actual results were collected for the production of Model X and Model Y during the year.
|
Model X |
Model Y |
|
|
Units produced |
8,000 |
4,000 |
|
Prime costs |
$160,000 |
$100,000 |
|
Number of setups |
200 |
100 |
|
Number of orders |
3,000 |
6,000 |
|
Machine hours |
12,000 |
9,000 |
Determine the unit cost of Model X.
2. During the most recent shift, Quiz Company produced 50 units in 10 hours. Determine the velocity for the production process.
a. 5 units per hour
b. 0.2 units per hour
c. 5 hours per unit
d. 0.2 hours per unit
In: Accounting
a) Use the normal distribution to find a confidence interval for
a proportion p given the relevant sample results. Give the
best point estimate for p, the margin of error, and the
confidence interval. Assume the results come from a random
sample.
A 90% confidence interval for p given that p^=0.39 and
n=450.
Round your answer for the best point estimate to two decimal
places, and your answers for the margin of error and the confidence
interval to three decimal places.
Best point estimate =
Margin of error = ±
The 90% confidence interval is ____________ to _____________
b) Use the normal distribution and the given sample results to
complete the test of the given hypotheses. Assume the results come
from a random sample and use a 5% significance level.
Test H0 : p=0.2 vs Ha : p≠0.2 using the sample results p^=0.26 with
n=999
Round your answer for the test statistic to two decimal places, and
your answer for the p-value to three decimal places.
test statistic = ______________________
p-value = _______________________
Conclusion: Reject or Do not reject H0?
In: Statistics and Probability
| Month | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| Value | 23 | 13 | 20 | 12 | 18 | 21 | 16 |
| (b) | Develop a three-month moving average for this time series. Compute MSE and a forecast for month 8. |
| If required, round your answers to two decimal places. Do not round intermediate calculation. | |
| MSE: | |
| The forecast for month 8: | |
| (c) | Use α = 0.2 to compute the exponential smoothing values for the time series. Compute MSE and a forecast for month 8. |
| If required, round your answers to two decimal places. Do not round intermediate calculation. | |
| MSE: | |
| The forecast for month 8: | |
| (d) | Compare the three-month moving average forecast with the exponential smoothing forecast using α = 0.2. Which appears to provide the better forecast based on MSE? |
| - Select your answer -3-month moving averageexponential smoothingItem 7 | |
| (e) | Use trial and error to find a value of the exponential smoothing coefficient α that results in the smallest MSE. |
| If required, round your answer to two decimal places. | |
| α = |
In: Statistics and Probability
| Month | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| Value | 23 | 13 | 20 | 12 | 18 | 21 | 16 |
| (b) | Develop a three-month moving average for this time series. Compute MSE and a forecast for month 8. |
| If required, round your answers to two decimal places. Do not round intermediate calculation. | |
| MSE: | |
| The forecast for month 8: | |
| (c) | Use α = 0.2 to compute the exponential smoothing values for the time series. Compute MSE and a forecast for month 8. |
| If required, round your answers to two decimal places. Do not round intermediate calculation. | |
| MSE: | |
| The forecast for month 8: | |
| (d) | Compare the three-month moving average forecast with the exponential smoothing forecast using α = 0.2. Which appears to provide the better forecast based on MSE? |
| - Select your answer -3-month moving averageexponential smoothingItem 7 | |
| (e) | Use trial and error to find a value of the exponential smoothing coefficient α that results in the smallest MSE. |
| If required, round your answer to two decimal places. | |
|
α = (I'M LOOKING FOR E) |
In: Statistics and Probability
Assume that the firework has a mass of m_0 = 0.30~\text{kg}m0=0.30 kg and is launched from a cannon at an angle of \theta_0 = 41.8^\circθ0=41.8∘ with an initial velocity of | v_0 | = 20~\text{m/s}∣v0∣=20 m/s. Just as the firework reaches its hight point in its trajectory, it explodes into two pieces. Immediately after the explosion, the first piece, with a mass of m_1 = 0.2~\text{kg}m1=0.2 kg flies off at an angle \theta_1 = 150^\circθ1=150∘ relative to the positive (forward) horizontal axis at a velocity of | v_1 | = 5~\text{m/s}∣v1∣=5 m/s relative to the ground. Calculate the trajectory angle, \theta_2θ2 of the second piece immediately after the explosion. Assume the second piece has a mass of m_2 = 0.1~\text{kg}m2=0.1 kg, neglect the effect of air resistance, and report your result as an angle relative to the positive (forward) horizontal axis.
In: Physics
John Calipari, head basketball coach for the 2012 national champion University of Kentucky Wildcats, is the highest paid coach in college basketball, with an annual salary of $5.4 million. The following sample shows the head basketball coach's salary for a sample of 10 schools playing NCAA Division I basketball. Salary data are in millions of dollars.
| University | Coach's Salary |
| Indiana | 2.2 |
| Xavier | 0.5 |
| Texas | 2.4 |
| Connecticut | 2.7 |
| West Virginia | 2.0 |
| Syracuse | 1.5 |
| Murray State | 0.2 |
| Florida State | 1.5 |
| South Dakota State | 0.1 |
| Vermont | 0.2 |
a. Use the sample mean for the 10 schools to estimate the population mean annual salary for head basketball coaches at colleges and universities playing NCAA Division I basketball.
b. Use the data to estimate the population standard deviation for the annual salary for head basketball coaches.
c. What is the 95% confidence interval for the population variance?
d. What is the 95% confidence interval for the population standard deviation?
e. What is the 95% confidence interval for the population mean?
In: Statistics and Probability