Questions
use c++ Parking charge application: A parking garage charges a $20.00 minimum fee to park for...

use c++

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.

In: Computer Science

The stock of Arbor Pet Trees (APT) is priced based on the given systematic risk factors....

The stock of Arbor Pet Trees (APT) is priced based on the given systematic risk factors. Estimated sensitivities to these risk factors are given by the betas of the regression RAPT – Rrf = βcreditRcredit + βvalue Rvalue + α + ε Factor Risk Premium Beta Credit Risk 5.6% 1 Valuation Risk 3.8% 0.3 Risk-free rate 2.1% If the actual return is 9.2%, what is the value of alpha?

In: Finance

15. A reversed Carnot engine (refrigeration unit) is used to maintain the temperature inside a freezer...

15. A reversed Carnot engine (refrigeration unit) is used to maintain the temperature inside a freezer at -34 oC. The room temperature in which the refrigeration unit operates is a constant 24 oC. If the motor on the refrigeration unit uses 0.3 kW, determine the rate at which heat is removed from the freezer in Watts.

State your answer in whole numbers. Example: 2147

I WILL RATE YOU

In: Mechanical Engineering

Suppose the risk-free rate is 3.5%; on average, an AAA-rated corporate bond carries a credit spread...

Suppose the risk-free rate is 3.5%; on average, an AAA-rated corporate bond carries a credit spread of 0.3%, an A-rated corporate bond carries a credit spread of 1.1%, and a B-rated corporate bond carries a credit spread of 3.9%. Company XYZ’s outstanding debt is rated BBB by rating agencies. What would be the cost of debt for XYZ based on prevailing market rates?

In: Finance

Chlorophyll is known to have its absorption maximum at 680 nm (red light) with the extinction...

Chlorophyll is known to have its absorption maximum at 680 nm (red light) with the extinction coefficient of 105 L/mol*cm. Assume a plant with leaves about 0.6 mm thick with the chlorophyll concentration of 0.0005 mol/L. How much red light in [%] will pass through a typical leave? Select one: a. 0.1 b. 10 c. 0.01 d. 0.3 e. 1

In: Chemistry

A day’s production of 850 parts contains 50 defective parts. Three parts are selected at random...

A day’s production of 850 parts contains 50 defective parts. Three parts are selected at random without replacement. Let the random variable ? equal the number of defective parts in the sample.

1. Find the probability mass function

2. Find the cumulative distribution function of ?.

3. Find ?(? > 0.5) =

4. Find ?(1.5) =

5. Find ?(2) − ?(0.3) =

6. Find ?(0.99 < ? < 2.5) =

In: Statistics and Probability

6. BSA has the following amino acid profile compared with the average of known vertebrate proteins:...

6. BSA has the following amino acid profile compared with the average of known vertebrate proteins:

AA

BSA

Average Protein

Phe

4.6%

4.0%

His

2.7%

2.9%

Lys

10.1%

7.2%

Arg

3.9%

4.2%

Trp

0.3%

1.3%

Tyr

3.4%

3.3%

Based upon this data, is BSA a good standard to use in the Bradford assay? Explain your answer.

In: Biology

Suppose that the chance of rain tomorrow depends on previous weather conditions only through whether or...

Suppose that the chance of rain tomorrow depends on previous weather conditions only through whether or not it is raining today and not on past weather conditions. Suppose also that if it rains today, then it will rain tomorrow with probability 0.6, and if it does not rain today, then it will rain tomorrow with probability 0.3, then

a. Calculate the probability that it will rain four days from today given that it is raining today.

b. What is the limiting probability of rain.

In: Statistics and Probability

An elastic (stretchable) balloon made of a material that is permeable to water but not to...

An elastic (stretchable) balloon made of a material that is permeable to water but not to any solutes is filled with an aqueous solution containing 0.1 M glucose and 0.3 M NaCl. The balloon is then sealed and completely immersed in an second aqueous solution with NaCl as the only solute. The balloon does not expand or contract. What is the concentration of NaCl in the solution that the balloon was immersed in (the second solution)? Assume all salts undergo complete dissociation.

In: Chemistry

. Air enters the compressor of an ideal gas refrigeration cycle at 7oC and 40 kPa...

. Air enters the compressor of an ideal gas refrigeration cycle at 7oC and 40 kPa and the turbine at 37oC and 170 kPa. The mass flow rate of air through the cycle is 0.3 kg/sec. Assuming variable specific heats for air, determine (a) the rate of refrigeration, (b) the net power input, and (c) the coefficient of performance. Also, draw the T-s diagram of the gas refrigeration cycle.

In: Mechanical Engineering