Compute the sales tax as five percent of the purchase price

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

Question: This is for a C++ programming class using the joyce farrel book.

Program: Create a structure named purchase. Each purchase contains an invoice number, amount of sale, and amount of sales tax.

Create a main() method that declares a Purchase object and prompts the user for purchase details. When you prompt for an invoice number, do not let the user proceed until a number between 1000 and 8000 has been entered.

When you prompt for a sales amount, do not proceed until the user has entered a non-negative value.

Compute the sales tax as five percent of the purchase price. After a valid purchase object has been created display the objects invoice number, sales amount, and sales tax.

Please ensure you use only things that the object oriented programming using c++ book by joyce farrel. Please do not use code that would not have been learned yet and please keep it short and simple.

Reference no: EM13699407

Questions Cloud

Write a java program that uses the elapsed time : Write a Java program that uses the elapsed time for an event in second and then outputs the elapsed time in hours, minutes and seconds. (For case, if the desired time is 9630 seconds, then the output is 2: 40: 30)
Write a program outputs the number of milk : Write a program that does the subsequent for 50 liters of milk produced in the morning - The cost of producing one liter of milk is $0.58, cost of each carton itself is $0.25 and the sale price on each carton of milk is $3.99.
The half life for the first order decomposition of n2o5 : Problem- The half life for the first order decomposition of N2O5 is 20.5 x 10^4 s. How long will it take for a sample of N205 to decompose to 80%, 50%, and 20% of its initial value
Design the logic for a program that merges the files : Design the logic for a program that merges the files for summer and winter programs to create a list of the first and last names of all participants for the year.
Compute the sales tax as five percent of the purchase price : Create a structure named purchase. Each purchase contains an invoice number, amount of sale, and amount of sales tax.
Write an application that shows the sum : This is for Object-Oriented Programming Using C++ language - Edition Joyce Farrell. Please ensure to read everything that I have wrote so that there is no confusion.
Find which statement is true and which statement is false : Two cells within a Karnaugh map are adjacent if only one variable is different between the coordinates of the two cells - Find which statement is true and which statement is false.
How much energy is released of ethane undergoes : Problem- 2C2H6 (g) + 7O2 (g) ? 4CO2(g) + 6H2O (g) ?H = -1560 kJ How much energy (in kJ) is released if 15.6 g of ethane undergoes combustion
What would be the representation 010 in 16-bit binary : Express 159 base10 and -98 base10 in 8-bit binary one's complement form and then add the numbers.

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