### Calculate and write same file total of yesterdays receipts

Assignment Help Electrical Engineering
##### Reference no: EM13268692

A parking garage charges a \$ 5.00 minimum fee to park for up to three hours and an additional \$ 1.00 per hour for each hour over the hours. the maximum charge for any given 24 hours period is \$ 2.00.

Write a program that will caluclate and print the parking charges for each of five customers who parked their cars in the garage yesterday.

Your employer will enter the hours paked for each customer and your program should be:

Write to a file the results in a tabular format
Calculate and write the same file total of yesterday's receipts.
Your program should use the function "CaluclateCharges" to determine the cahrge for each customet.
Your writing file should appear in the following format:

Cars Hours Charges
1 2.0 5.00
2 1.5 5.00
3 7.0 9.00
4 24.0 20.00
5 19.00 20.00

Total 53.5 59.00

#### Questions Cloud

 What is hoorus temperature : The robot HooRU is lost in space, floating around aimlessly, and radiates heat into the depths of the cosmos at the rate of 12.9 W. What is HooRU's temperature What is the magnitude of the upper persons force : Two friends are carrying a crate of mass 200 kg up a flight of stairs. The crate has length 1.25 m and height 0.500 m, What is the magnitude of the upper person's force What is the thickness of the hair : Two microscope slides are placed one on top the other. They are in contact at one end but a hair separates them at the other end. What is the thickness of the hair How much voltage is assumed dropped across a forward bias : (1) If you have a transformer that is not in a circuit, how can you tell/determine what the ratio is (2) How do you tell if a diode is forward or bias. How much voltage is assumed dropped across a forward biased silicon diode. Reversed biased sili.. Calculate and write same file total of yesterdays receipts : A parking garage charges a \$ 5.00 minimum fee to park for up to three hours and an additional \$ 1.00 per hour for each hour over the hours. the maximum charge for any given 24 hours period is \$ 2.00. What is the mass in grams of the cup : A 23 g ice cube at -4.6 oC is place in an aluminum cup whose initial temperature is 80.56 oC. What is the mass in grams of the cup Calculate the phase impedance of the transformer in per unit : A 50-KVA, 13,800/208 V ?-Y distribution transformer has an equivalent phase impedance 114.2+j800 ohm referred to the high voltage side. Take the rated voltage as the base voltage and the rated VA as the based voltampere value. Determine the angular size of the moon : the moon has an angular size of .5degrees when viewed with unaided vision from earth. what is the angular size of the moon as seen through this telescope Draw appropriate control scheme using simplified isa symbols : Wastewater leaving the ACME cheese factory must be neutralized to a pH between 6.8 and 7.2. Citric acid is available to decrease pH and sodium hydroxide is used to increase pH.

### Write a Review

#### What is the range of the sensor voltage outputs initially

a. What is the range of the sensor voltage outputs initially and finally? b. What range of voltages would be expected to be measured 2 sec after the step change is applied?

#### What is input resistance of the resulting current divider

A designer searches for a simple circuit to provide one-third of a signal current I to a load resistance R. Suggest a solution using one resistor. What must its value be. What is the input resistance of the resulting current divider

#### What is turns ratio of a step-down transformer

A 115/28 V transformer has 56 turns on its low voltage side. How many turns does it have on its high voltage side what is its turns ratio when it is used as a step-down transformer

#### Calculate the value of the resistance that should be added

A 15 hp, 209V,three-phase,six pole, Y-connected induction motor has the following parameter values per phase: R1= 0.128 ohm, R'2=0.0935 ohm Xeq- X1 + X'2 = 0.49 ohm. The motor slip at full load is 3%, and the efficiency id 90%.

#### Construct the truth table of a 1-bit full adder

(b) Construct a 3-input-8-output binary decoder using NOT, AND and OR gates (without enable logic). (c) Using the above decoder, design the following logic function. Add the required gates and re-draw the decoder.

#### What is the voltage drop across the 570 ohm resistor

A circuit consists of two 1.0 k ohm resistors in series and this series being connected in parallel to a 570 ohm resistor. If the voltage drop across one of the 1.0 k ohm resistors is 4.5 V, what is the voltage drop across the 570 ohm resistor

#### Describe what is the mass of licl in a unit cell

Lithium chloride crystallizes in a face-centered cubic structure. The unit cell length is 5.14 10-8 cm. The chloride ions are touching each other along the face diagonal of the unit cell. The lithium ions fit into the holes between the chloride io..

#### Classify the system as to stabilty and time-invariance

A system is described by the differential equation ty'(t)-8y(t)=x(t). Classify the system as to linearity, time-invariance and stability. A system is described by the equation y(t)= Intergral x(lamda)d(lamda) (from t/3 to infinte). Classify the sys..

#### Find the location and the value of the third charger

Charges +Q and +3Q are seperated by a distance 2m. A third charge is located such that the electrostatic system is in equilibrium. Find the location and the value of the third charger in terms of Q.

#### What is the differential output voltage

A differential amplifier stage has collector resistors of 5.1 Kohms each. If Ic1 = 1.35 mA and Ic2 = 1.29 mA, what is the differential output voltage.

#### What is new profile of the total building load in terms of p

The owner wants to an addition to the building in the above question which will have a large kitchen and dining area. It will add an overall 120 kW of kitchen loads (pf = 0.95 lag). What is the new profile of the total building load in terms of P,..

#### Design a circuit to duplicate the input-output response

Suppose that you have graduated from College with an engineering degree and you start working for a local contracting company. For your first job, you are asked to design a circuit to duplicate the input-output response for small-amplitude inputs ..