Calculate new cost of the item with the sales tax

Assignment Help Computer Engineering
Reference no: EM132087320

The original price, the sales tax, and the total price must be in dollars and cents (rounded to 2 decimal places). The percentage of the sales tax is not sufficient.

Create a small program based on the following

// (calculates different sales tax based on an item price)

1. Declare all variables needed.

2. Prompt the user to enter the price of an item.

3. Get the item price from the keyboard.

4.Calculate the sales tax of the item:

----Use 8.5% if the item costs less than $550.

----Use 7% if the item costs $550 or more.

7. Display the original item price and sales tax amount onto the screen.

8. Calculate new cost of the item with the sales tax.

9. Display the total price of the item onto the screen.

NOTE: Please do not use cin or cout. Add a comment that says what each step is doing.

Reference no: EM132087320

Questions Cloud

What are some practical applications of this : Why can water stay in bucket if you spin it upside down, if you spin the bucket fast enough? What are some practical applications of this?
How the items mentioned previously could be used together : Write the code for manipulating abstract syntax trees if cfront had been written in C++. Why do you suppose Stroustrup chose to write it in C instead?
Impact on the heat balance as a doubling : Methane has a current concentration of 1.7 ppm in the atmosphere and its doubling at a faster rate than is CO2, would a doubling of methane
Explain how heat is lost from a hot surface : Explain how heat is lost from a hot surface to the surrounding air - Explain the effect of insulating a hot surface - Explain the effect of insulating
Calculate new cost of the item with the sales tax : Display the original item price and sales tax amount onto the screen. Calculate new cost of the item with the sales tax.
Stationary asteroid directly : A starship with a rest mass of 4.5 × 109 kg is traveling at a speed of 0.995 c when its sensors pick up a stationary asteroid directly in its path
What is the velocity of an airplane flying : What is the velocity of an airplane flying at 300 mph if it encounters at 60 mph head wind?
Basic or fundamental physical quantities : What are the basic or fundamental physical quantities and why are they called that?
Market directly east across the river : Sandra needs to deliver 20 cases of celery to the farmer's market directly east across the river, which is 32 km wide.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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