Write program that will ask user how much their purchase was

Assignment Help C/C++ Programming
Reference no: EM131455282

Discussion: "Old School" British Money

Write a program that will ask a user how much their purchase was, and then how much money they gave to a sales person. Your program will then show the sales person how many twenty dollar bills, ten dollar bills, five dollar bills, one dollar bills, quarters, dimes, nickles and cents the customer is to receive in change. Omit a value if and only if the value the to give back is not zero.

Re-write the program that computed change so that it will compute change for the "old style" British money (Pounds, Crowns, Shillings, Six pence, Three Pence, Pence, Half Pence, and Farthing). You will have to check with Wikipedia (or a similar site) to get the correct conversions.

Assuming that there is a 17.7% VAT (what sales tax is called in the UK), you must first compute the "actual" cost of the item (meaning, they enter how much it shows on the sticker and then you calculate the appropriate tax down to the Farthing). The user must then provide enough money to cover the item plus tax. (Note: In the UK, the price of items on the shelf already must include the total amount including tax.)

Assume that Pound notes come in 20, 10, 5, 2, and 1 denominations.

Reference no: EM131455282

Questions Cloud

Determine background and foreground color : Determining Background and Foreground Color. Each pixel on the screen had a single byte that stored the background and foreground color.
Discuss the importance of leadership team : Discuss the importance of leadership team buy-in of the strategy. Discuss the use of at least two analytical tools in performing a situational analysis
Prepare a common-size statement for the balance sheet : ACC305- Auditing and Assurance Services - Prepare a common-size statement for the balance sheet of Cloud 9, use total assets as the basis for the balance sheet - perform an analysis of Cloud 9's financial position and its business risks. Discuss the..
Write program that ask user which bit in a signed short int : Write a program that will ask a user which bit in a signed short int that they would like to switch its value (from 0 to 1 or 1 to 0).
Write program that will ask user how much their purchase was : Write a program that will ask a user how much their purchase was, and then how much money they gave to a sales person.to a sales person.
Is evidence of discrimination sufficient to support a claim : Calder, aged 60, worked as an account executive for TCI Cable, selling advertising time. Calder believed that she had a number of negative experiences at TCI.
How does the monitoring of a daily activity help a company : How does an everyday activity such as driving to and from the workplace affect the efficiency and productivity of an employee?
Provide training design consulting services : Identify the design process for each. compare and contrast each in terms of their approach.
Determine architecture of the system as web-based interface : Determine the architecture of the system as Web-based interface, client/server architecture, Internet/Intranet interface, network configuration, etc.

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