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

  Write me a function that finds the smallest item in an array

Write me a function that finds the smallest item in an ArrayBag (by reference) and returns true if the arrayBag is not empty and false otherwise.

  Write a printf or scanf statement

Write a printf or scanf statement for each of the following:a. Print unsigned integer 40000 left justified in a 15-digit field with 8 digits.b. Read a hexadecimal value into variable hex.

  Savingsaccount objects and two checkingaccount objects

Develop a polymorphic banking application using the Account hierarchy you created. Create the following two SavingsAccount objects and two CheckingAccount objects and store them in an array called "arrays" of Account references to the objects

  Explain advantageous to use a definite loop

Describe one scenario not mentioned in the textbook in which it would be advantageous for you to use a definite loop as opposed to an indefinite loop when developing a program. Provide a rationale for your response.

  Determine whether all elements of the list are distinct

Consider the subsequent decision problem: Given a list of integers, determine whether all elements of the list are distinct - Show that this question can be solved in polynomial time.

  How to spot if a character is a lower case letter or not

You must be finding out how to convert a letter to upper case. I am having difficulty with this program because I do not know where to start with.

  The factorial of a positive integer n, denoted by n!

Write a program that computes the sequence of factorial values: 1! = 1, 2! = 2, 3! = 6, 4! = 24, 5! = 120, 6! = 720, ....

  Prepare a temperature converter

Have to write a small program that prompts the user to enter a temperature in degrees Fahrenheit and then prints a massage as to whether the alarm will sound at that temperature.

  How to declare and use single dimension arrays

How do you declare and use single dimension arrays? How do you perform basic sort and search routines on arrays?

  Lines starting from line number

Write a program in C with following operations on a file: 1. Display each line with line number. 2. Display m lines starting from line number n, where m and n are taken as input.

  Write a program that accepts as input a string variable

Write a program that accepts as input a string variable called strFirstName, then another string variable called strLastName, and an integer variable called intAge.

  Program that stores information for date-time objects

Derive class WeekDay from class DateTime such that WeekDay::display() will display local date time using values from the parameters and the corresponding weekday.

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