Program that calculate and print the parking charges

Assignment Help C/C++ Programming
Reference no: EM131008044 , Length: 1

What is the program code of this problem:

A parking garage charges a $2.00 minimum fee to park for up to three hours and an additional $0.50 per hour for each hour or part thereof over three hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time.

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

You should enter the hours parked for each customer. Your program should print the results in a tabular format, and should calculate and print the total of yesterday's receipts.

The program should use the function calculateCharges to determine the charge for each customer.

Your outputs should appear in the following format:

Car Hours Charge 1 1.5 2.00 2 4.0 2.50 3 24.0 10.00 TOTAL 29.5 14.50

Your program should be named parking.c.

Reference no: EM131008044

Questions Cloud

How would you feel about being diagnosed by a doctor : From the perspective of a patient, how would you feel about being diagnosed by a doctor who could be hundreds or thousands of miles away from you?
Find the approximate value of r for the sample : According to the researchers, ‘‘correlational analysis revealed a small but signi?cant inverse relationship between [actual] pain tolerance and the reported severity of chronic pain.'' Based on this statement, is the value of r for the 337 patient..
Construct a payoff table : Construct a payoff table for this set of actions using net profit as the "payoff." Don't forget the possible action of doing nothing.
Construct a payoff table for set of actions : Construct a payoff table for this set of actions using total cost as the "payoff." What is the probability that a randomly selected worker is a Female Hispanic/Latino?
Program that calculate and print the parking charges : Write a program that will calculate and print the parking charges for each of three customers who parked their cars in this garage yesterday.
Analyze the qi goals the organization has in place : Analyze publically available quality measures affecting health care organizations. Analyze the types of care or service your chosen organization focus on. Analyze the mission. Analyze the QI goals the organization has in place
Explain why the con?dence interval for the mean value of y : Explain why the con?dence interval for the mean value of y for a particular x-value, say, xp, gets wider the farther xp is from x¯. What are the implications of this phenomenon for estimation and prediction?
Explain how a market can be segmented : Explain and provide an example of credence - Explain how a market can be segmented. What are types of segments that a marketing manager could segment a market? Provide an example of segmenting a market for a pet product or service.
Explain the pros and cons of using simulation modeling : Under what conditions would you choose to use a simulation model? What is the simulation process? Explain the pros and cons of using simulation modeling

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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