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

Reference no: EM13268692

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.

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Calculate the resistor- inductor value and capacitor value

Basic boost converter that takes in 600VDC and boost the voltage to 900VDC with an output power of 8KW and a switch with a frequency of 250KHZ. One inductor one switch one capacitor and one resistor.

  Explain understanding low high and band pass filters

Understanding low, high and band pass filters, A signal in the IF section of an FM radio receiver occupies the frequency band 10.61 MHz to 10.79 MHz. Compute the bandwidth of this signal.

  How to perform an economic analysis

For a new product sales are expected to be 2,000 products in year 1, increasing by 1,000 products each subsequent year to 5,000 products in year 4. Two different manufacturing equipment options are available a) Up front equipment purchase cost of $..

  Determine the frequency of input voltage v1 in hz

Given an AC input voltage of Vrms = 200Vrms and a sinusoidal frequency of omega = 120pi rad/sec, determine the following: V1peak (peak value of AC input voltage) V1(peak-to-Vpeak )(peak to peak value of AC input  voltage) Frequency of input voltage V..

  Explain power factor improvement

Power factor improvement, An industrial user has a number of machine tools which are driven by three phase induction motors. during a particular shift, the power factor of the combined load can vary between 0.65(100 KVA load) and 0.81 (20 KVA) loa..

  Design a op-amp summer to produce the output voltage

Design a op-amp summer to produce the output voltage Vo=2v11-10v12+3v13-v14. Assume the largest resistor value is 500k ohms, and the input impedance seen by each source is the largest value possible.

  Nibco''s big bang - an sap implementation

Analyze Case Study - NIBCO's 'Big Bang': An SAP Implementation- Explain the pros and cons of the approach to implementation decided upon by NIBCO.

  Determine size of solar cell that is need to power the lamp

Assuming that solar energy is used to charge a storage battery which then in turn is to power a lamp of 40W. Solar cell obtains power at the rate of 100milliwatts per square centimeter, and the sunlight time is 12 hours.

  Describe quantitatively how would vout vs frequency

A Bandpass Filter, made up of a High pass RC circuit to a Low Pass RC circuit has values of R1=R2=10.0 kohm and C1=C2=0.01uF is created. Varying the driving frequency from 10Hz to 1MHz in decades and measure Vout and the phase angle.

  Find the hydraulic pressure during the extending stroke

A pump supplies oil at 0.0016 m3/s to a 40 mm diameter double-acting hydraulic cylinder. If the load is 5000 N (extending and retracting) and the rod diameter is 20 mm, find the Hydraulic pressure during the extending stroke.

  What is the bit rate of the corresponding pcm signal

A message signal, x(t) has a bandwidth of 15 kHz and an average power of 0.5 W. This signal is to be uniformly quantized with an input range of range of +-5 V. What is the bit rate of the corresponding PCM signal if the SQNR is to be greater than ..

  Determine turns ratio of each transformer and line current

Three single phase transformers are used to form a three-phase transformer bank rated 13.8kV (delta)/120kV (wye). One side of the transformer bank is connected to a 120kV transmission line

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