Write an application that prints out the receipt

Assignment Help Programming Languages
Reference no: EM13772063

Basic sales tax is applicable at a rate of 10% on all goods, except books, food, and medical products that are exempt. Import duty is an additional sales tax applicable on all imported goods at a rate of 5%, with no exemptions.

When I purchase items I receive a receipt which lists the name of all the items and their price (including tax), finishing with the total cost of the items, and the total amounts of sales taxes paid. The rounding rules for sales tax are that for a tax rate of n%, a shelf price of p contains (np/100 rounded up to the nearest 0.05) amount of sales tax.

Write an application that prints out the receipt details for these shopping baskets...

INPUT:

Input 1:

1 book at 12.49

1 music CD at 14.99

1 chocolate bar at 0.85

Input 2:

1 imported box of chocolates at 10.00

1 imported bottle of perfume at 47.50

Input 3:

1 imported bottle of perfume at 27.99

1 bottle of perfume at 18.99

1 packet of headache pills at 9.75

1 box of imported chocolates at 11.25

OUTPUT

Output 1:

1 book : 12.49

1 music CD: 16.49

1 chocolate bar: 0.85

Sales Taxes: 1.50

Total: 29.83

Output 2:

1 imported box of chocolates: 10.50

1 imported bottle of perfume: 54.65

Sales Taxes: 7.65

Total: 65.15

Output 3:

1 imported bottle of perfume: 32.19

1 bottle of perfume: 20.89

1 packet of headache pills: 9.75

1 imported box of chocolates: 11.85

Sales Taxes: 6.70

Total: 74.68

Reference no: EM13772063

Questions Cloud

Write a two pages essay about famous series devious maids : Write a two pages essay about the famous series DEVIOUS MAIDS. Identify latino stereotypes in one episode and describe what they are and how they possibly negatively affect the Mexican/Chicano Community.
Apathetic to fire safety-harnessing technology : As part of your promotional plan, you decide to help a new member learn the ropes of being a pro-active fire safety team player in your organization. What legal and moral responsibilities and values and principles responsibilities do you want to ..
What driving force for local company to branch out globally : what the driving force was for the local company to branch out globally. Recommend one approach the company could take in order to locate other countries to market their products to in the future.
Compare and contrast micro-economics and macro-economics : Compare and contrast micro-economics and macro-economics. Provide examples where necessary.
Write an application that prints out the receipt : Write an application that prints out the receipt details for these shopping baskets...
Calculate the number of moles : How many grams are contained in 2.00 mol of Neon - calculate the number of moles of 20.0 g He
Practice of public health or community health nursing : Identify a new law or regulation that affects the practice of public health or community health nursing. Discover the sponsor of the action. Using news reports, statements in the public record, personal telephone or other interview data, outline t..
Characteristics of various types of provider organizations : Explain the salient characteristics of various types of provider organizations, including mission, program goals and objectives, staffing requirements, and policies and procedures.
Evaluate the potential effectiveness of model positioning : Evaluate the potential effectiveness of the model positioning of motivation, and propose at least one action that the organization can take in order to apply the concept.

Reviews

Write a Review

Programming Languages Questions & Answers

  Learn redirecting standard output

Learn redirecting standard output (stdout) to a file using the output redirection operator

  Identify components that perform distinct service

Identify components that perform a distinct service. Although the details can be quite complex, these details are the basic principles of object-oriented programming

  Write application to use random-number to create sentences

Write an application that uses random-number generation to create sentences. Use four arrays of strings called article, noun, verb and preposition.

  Write an application to calculate the factorials

Write an application that calculates the factorials of 1 through 20. use type long. Display the results in tabular format. What difficulty might prevent you from calculating the factorial of 100?

  Write class which accepts user-s hourly rate of pay

Write down class which accepts the user's hourly rate of pay and number of hours worked. Display user's gross pay, withholding tax (15% of gross pay).

  Write a while and a do-while loop

Pick one or more examples from everyday life and write a WHILE and a DO-WHILE loop.

  Write a program with a windows-style interface

write a program with a Windows-style interface to carry out the task. A form contains two text boxes and one large label between them with no preset caption. When the first text box receives the focus, the label reads "Enter your full name.

  Direction and magnitude be integers or doubles

Design the program consider Will the direction and magnitude be integers or doubles - will the input vectors be passed by value, by reference, or by const reference?

  Write program to evaluate young worker-s earning

Write down a program to evaluate how much young worker will make before retiring at age 65. Request worker's name, age, and starting salary as input.

  Steps in preparing a high level language program

Describe the purpose of each step in preparing a high level language program for execution (editing, compiling, linking, and loading).  Include in your description the types of files created with each of the first three steps.?

  What are application programming interfaces apis recognize

what are application programming interfaces apis? identify several apis that could or do exist in the software

  Design program that allows clerk to go through cards

Design a program that allows a clerk to go through the cards, entering the district for each citizen until an appropriate sentinel value is entered.

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