Calculate and write same file total of yesterdays receipts

Assignment Help Electrical Engineering
Reference no: EM13252813

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: EM13252813

Questions Cloud

Find real and reactive power supplied to the 360-v winding : 1-phase 2-winding transformer is rated 30 kVA, 360/90 V, 60 Hz. A source connected to the 360-V winding supplies an impedance load connected to the 120-V winding. The load absorbs 15 kVA at 0.8 p.f.
Calculate the speeders speed with respect to the ground : A speeder is pulling directly away and increasing his distance from a police car that is moving at 23.0 m/s with respect to the ground. Calculate the speeder's speed with respect to the ground.
Environment is component of international business : The legal environment is a component of  international business. What types of laws regulate international corporations? How do the differences in laws and regulations in different countries affect international corporations? Provide some examples.
Determine two possible corporate governance challenges : determine two possible corporate governance challenges that might be faced by Best Buy as a result of its rapid growth and why they could become corporate governance issues.
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.
Primary types of political risks : Firms operating in some countries are exposed to political risks.  What are the primary types of political risks? Explain each of them, and provide some examples.
Professional presentations : Team Reading: Professional Presentations
Determine a maximum possible radius of the nucleus : In Rutherford scattering of alpha particles from a thin gold foil, determine a maximum possible radius of the nucleus
Explain which would be considered ionic bonds : Of the following compounds, which would be considered ionic bonds and which would be considered covalent bonds, and why

Reviews

Write a Review

Electrical Engineering Questions & Answers

  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?

  Create a bandpass filter with cutoff frequencies

Create a bandpass filter with cutoff frequencies of 100-1k, attenuate by at least 3db at desired frequency(100-1k) and at 60Hz attenuate by 10 db. Resistor, Capacitor, Inductor, and Op-amps can be used.

  What is the gain formula for a non inverting op amp

The LM358 op amp can be a single or dual supply op-amp. This mean that it can operate with just a single supply i.e. + 5 volt or with dual supplies i.e. (+ and -) 5 volt supplies. With a inverting configuration with dual supplies (+5v and -5v) bei..

  What is the total impeadance of the combined three loads

Three loads are connected in parrallel across a 250 Vrms line. Load 1 absorbs 16 kW and 18 kVAR. Load 2 absorbs 10 kVA with a power factor of 0.6 leading. Load 3 absorbs 8 kW with a power factor of 1.

  Laplace transforms enable interpretation and manipulation

Laplace transforms enable interpretation and manipulation of different signals by viewing these signals as either time domain signals/pulse or else frequency domain representations

  Calculate the wavelength

The surface of the sun has a temperature of 6000 K. Calculate the wavelength at which the sun emits its peak radiancy.

  Give difference between vin n vo in voltage clipping circuit

1) What is the difference between Vin and Vo in a voltage clipping circuit with a zener diode 2) Does Vzo of a zener depend on the temperature of the surrpunding  3) Why is it necessary to put a resistor in a voltage regulator cirucit with a zener di..

  How the switch is closed instantaneously

A Vs equals 1V source impedance 25ohms is connected by a switch to a 50-ohms lossless air transmission line 1 m long, terminated in a load of 30-ohms. At time t=0s, the switch is closed instantaneously to launch a step voltage down the line.

  Explain a terrestrial radio link transmits a cdma signal

A terrestrial radio link transmits a CDMA signal from a base station using a spreading code with a chip rate of 1.0 Mchips per seconds. The message data rate of the signal is 10 kbps.

  Calculate the expression for the voltage

Hand calculate the expression for the voltage and current of the capacitor and plot these equations by using MATLAB and calculate the time constants of each circuit and point out this time constants at your voltage graphs.

  Determine the net chage delta q that flowed through resistor

Determine the net chage delta Q that flowed through a resistor over teh specified time interval for each of the following currents: (a) i(t) = 0.36A, from t=0 to t=3s (b) i(t) = [40t +8] mA, from t=1s to t=12s

  Explain to digitally manipulate information we must encode

To digitally manipulate information we must encode it using binary numbers. Consider an encoding for playing cards. There are 52 cards in a deck and they are divided

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