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

  Determine the average number of probes that each search algo

Determine the average number of probes that each search algorithm took. Do these values represent the theoretical values? Print out the averages for the two searches and their theoretical values.

  The user enter the total rainfall for each of 12 months

Write a program that lets the user enter the total rainfall for each of 12 months (starting with January) into an array of doubles. The program should calculate and display:the total rainfall for the year,the average monthly rainfall,and the months w..

  Define the term root-to-leaf path in detail

My goal, given a binary tree and a sum, is to return true if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. Returning false if no such path can be found.

  Write a program that calculates mileage reimbursement

Write a program that calculates mileage reimbursement for a salesperson at a rate of $0.35 per mile. Your program should interact with the user in this manner.

  Create class functions to set the class variables

Create class functions to set the class variables. Create class functions to get the values of the class variables. Create additional functions as necessary. Complete the following in your code Implement the new class.

  Explain the rand() in detail with example

The student should be able to test himself in addition, substraction, multiplication, divission giving integer (we use possitive numbers)

  Develop a global function customerinformation

Use a parameterized constructor to initialize data members - Develop a global function "CustomerInformation" that prints the customers information (number of dept each customer can handel). ( Use copy constructor).

  Create a roulette game

Create the programs in C++ that perform the purpose described and show the sample output - Create a .cpp program that verifies the strength of a password that a user is entering is strong

  Program to declare a simple one-dimensional array

Write a simple program, in C, C++, and Java, to declare a simple one-dimensional array and then attempt to access an array element that is not within its bounds.

  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.

  Implement the recursive version of the binary search

Write the code to test it out on a sample input. Compare its complexity with the iterative version found in the text book.

  Pros and cons of choosing two servers

Classify the two alternatives in terms of what type of application architecture they use. b. Outline the pros and cons of the two alternatives and make a recommendation to Fred about which is better.

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