Assignment: Cash Fundraising Cashier Write a program that prompts the user for the price of an...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Assignment: Cash Fundraising Cashier Write a program that prompts the user for the price of an item that the customer purchases and the amount of money the cashier receives from the customer (amount paid). Based on the item price entered by the user calculate the 5% tax and calculate the total item cost including the 5%tax. Given the total item cost and the amount received from the customer calculate the change given back to the customer. Because this is a fundraising event, the cashier can only return money owed to the customer in five-dollar bills. Any change smaller than five dollars is kept by the cashier to raise funds. For example, if the cashier owns the customer $16.50 then the customer will receive three five-dollar bills and the cashier will keep $1.50. If the cahier owns the customer $4.98, the customer will get zero back and the cashier will keep $4.98. The program performs the following operations: Asks the user for the item price Asks the user for the money given (paid) by the customer Calculates the 5% tax Calculates the total cost of the item including the tax Calculates the change given back to the customer base on the total cost of the item and money given by the customer Calculates the number of five dollars bills included in the change given back to the customer Display all the entered and calculated values. Sample output: Enter Item Price in dollars-> 2.50 Enter Money Inserted in dollars -> 10 Item cost without taxes 2.5 Money Inserted: 10.0 PST amount: 0.125 Total cost: 2.625 Total amount due to the customer: 7.375 Number of $5 bills paid back to the customer: 1 Assignment: Cash Fundraising Cashier Write a program that prompts the user for the price of an item that the customer purchases and the amount of money the cashier receives from the customer (amount paid). Based on the item price entered by the user calculate the 5% tax and calculate the total item cost including the 5%tax. Given the total item cost and the amount received from the customer calculate the change given back to the customer. Because this is a fundraising event, the cashier can only return money owed to the customer in five-dollar bills. Any change smaller than five dollars is kept by the cashier to raise funds. For example, if the cashier owns the customer $16.50 then the customer will receive three five-dollar bills and the cashier will keep $1.50. If the cahier owns the customer $4.98, the customer will get zero back and the cashier will keep $4.98. The program performs the following operations: Asks the user for the item price Asks the user for the money given (paid) by the customer Calculates the 5% tax Calculates the total cost of the item including the tax Calculates the change given back to the customer base on the total cost of the item and money given by the customer Calculates the number of five dollars bills included in the change given back to the customer Display all the entered and calculated values. Sample output: Enter Item Price in dollars-> 2.50 Enter Money Inserted in dollars -> 10 Item cost without taxes 2.5 Money Inserted: 10.0 PST amount: 0.125 Total cost: 2.625 Total amount due to the customer: 7.375 Number of $5 bills paid back to the customer: 1
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
31% of American adults surveyed stated that giving up their phone for a day would be more difficult than giving up their significant other. In 2012, the United States population over the age of 18...
-
Define how conflict may be specified in terms of object operation semantics. Give an example of conflicting operations. Give an example of non-conflicting operations that would conflict with...
-
1) Write a generic function to integrate y(x)dx with the following format function I integrator (x, y, method) where x is a vector and y is a matrix whose columns y(:,j) are vectors of the same...
-
Samples of n = 200 items were selected hourly over a 100-hour period, and the sample proportion of defectives was calculated each hour. The mean of the 100 sample proportions was .041. a. Use the...
-
a. The table shows the first five ionisation energies for five elements (A to E). For each one state which group the element belongs to. b. Explain your reasoning behind your answer for element E. c....
-
Explain how the physicianpatient relationship can be improved.
-
Justification/Recommendation Report: Improving Greenhouse Markets Service You are a recently hired manager for Greenhouse Market, a highend fast-food restaurant that has been in business for three...
-
Remo Company and Angelo Inc. are separate companies that operate in the same industry. Following are variable costing income statements for the two companies showing their different cost structures:...
-
Differentiate y = In [ x + x - a |
-
A price increase has two effects on the quantity of a good demanded: consumers switch to relatively less expensive goods (holding utility and other prices constant) and less goods are demanded...
-
In the long run, a firm can usually substitute one input for another while continuing to produce the same level of output. If such a firm produces a given level of output using the same amount of...
-
According to an article in the Financial Times on March 8, 2016, the capacity of the biggest container ships afloat rose sharply between 2011 and 2016 and has more than doubled since 2000. What is...
-
Has your company been involved in litigation or regulatory compliance problems related to sustainability? How was the matter resolved?
-
Are you convinced that the tension between corporate social responsibility to shareholders and stakeholders can be resolved?
-
You need to write a paper about Transformative Leadership and President Donald Trump of USA
-
Critical reading SAT scores are distributed as N(500, 100). a. Find the SAT score at the 75th percentile. b. Find the SAT score at the 25th percentile. c. Find the interquartile range for SAT scores....
-
What is an overnight reverse repurchase agreement (ON RRP)? What role does the interest on ON RRP play in the way the Fed hits its target for the federal funds rate in the current ample-reserves...
-
During a panel discussion, Randal Quarles, who was then a member of the Feds Board of Governors observed: The point about QE when we reach the zero lower bound is its a game changer. a. What is QE?...
-
In 2022, as the inflation rate in the United States was rapidly increasing, an editorial in the Wall Street Journal argued: In practice, forward guidance has tied the Fed to loose policies when...
Study smarter with the SolutionInn App