Write a program about a book order

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

Book Purchase Invoice -

Write a C++ program that asks for the following information about a book order from the console:

  • Title
  • Author
  • ISBN (hint: careful about what data type to use)
  • Price
  • Quantity (number of books to purchase)

Make use of the following data types:

  • C++ string
  • double
  • int

Additional Requirements:

  • Assume the tax on the total price of the books is 7%
  • Charge a $2 per book fee for each book over the quantity of 5. For example, if you order 5 books there is no extra fee, but if you order 7 there will be $4 in fees.
  • Tax should not be calculated on the fees.

Reference no: EM131635190

Questions Cloud

What is the expected time to pain relief for a participant : What is expected time to pain relief for a male following treatment? What is the expected time to pain relief for a participant aged 50 following treatment?
Explain the impact of the electoral college : Explain the impact of the Electoral College and defend why it should be modified, but not kept as it is currently written or abolished.
Define levels of coverages that are offered to employees : What are some of the reasons organizations/employers have different levels of coverages that are offered to employees
What type of government policies can encourage neighborhoods : When a neighborhood is cleaned up and kept neat, there are a number of positive spillovers: higher property values, less crime, happier residents.
Write a program about a book order : Write a C++ program that asks for the following information about a book order from the console: Title and Author
Condenses to liquid at the normal boiling point : What is the change in entropy in the system when 68.3 g of C2H5OH(g) at 1 atm condenses to liquid at the normal boiling point?
What source of information did you use in making decision : Give an example of a recent purchase in which you used extensive problem solving. What source of information did you use in making the decision?
Explain combined in consumer-driven health plans : What two elements are combined in consumer-driven health plans. Explain and All sources should be referenced with citations included
Chinas buildup of national defense : Is the US defense strategy toward this conflict being dictated via centralization or decentralization? How /Why?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program to check whether a number is even or odd

Write a C++ program to check whether a number entered by user is even or odd.

  Analyze a basic set of requirements for a problem

Analyze a basic set of requirements for a problem - Compose basic C++ language programs

  Full program using c programming language

(a) Write a pseudo-code to solve this problem. (b) Write a full program using C programming language to solve this problem.

  Write the definition of the function template

Add the operation queueCount to the class queueType (the array implementation of queues), which returns the number of elements in the queue

  Create a class named realtorcommission.

Create a class named RealtorCommission. Fields include the sale price of a house, the sales commission rate, and the commission.

  You have just upgraded your system

You have just upgraded your system to a "fast and wide" SCSI interface. This system has a floppy disk, a CD-ROM and five 8-gigabyte fixed disks. What is the device number of the host adapter? Why?

  Perform operations-add, delete and replace

Now given a string S, you can perform operations, namely, add, delete and replace of any character present in the string - Every operation will consists of following costs

  What is a control statement

What is a Control Statement? There are several types of control statements; define two control statements and use your own example in your definition.

  Designing a virtual memory manager

our program is to translate each logical address to a physical address and determine the contents of the signed byte stored at the correct physical address

  What does this method of playerlinkedlist class do

What does this method of PlayerLinkedList class do

  Write function that create pascals triangle in square matrix

Write and test a function that creates Pascal's Triangle in the square matrix that is passed to it. For example, if the two-dimensional array a and the integer 4 were passed to the function.

  Write a program in which the program print out the input

use (switch statement) to write a program in which the program print out the input (single character) if the character is not '2','t', or 'w'. Use 'default' and 'break' wisely.

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