Question: Write a C++ program that; Prints out a welcome message. Prompts the user for the following information: (a) Their first name (example) (b) Their last

 Write a C++ program that; Prints out a welcome message. Prompts

Write a C++ program that; Prints out a welcome message. Prompts the user for the following information: (a) Their first name (example) (b) Their last name (example: Williams) (c) The name of the product (example: Happy) (d) The unit price of the product (example: 1.99) (e) The quantity to buy (example: 200) (f) Their sales tax rate, as a percentage (example: 7.75) Calculates a subtotal, according to the formula subtotal = (unit price) * (number to buy) Calculates sales tax, according to the formula sales tax = (subtotal) * (tax rate)/100 Calculates shipping, according to the formula shipping = .09 * (subtotal) Calculates the grand total, according to the formula grand total = subtotal + sales tax + shipping Prints out a sales invoice. All of the input data, and calculated dollar amounts, should be printed out (first name, last name, product name, unit price, quantity, sales rate, subtotal, shipping charge, grand total). This information must be printed neatly, with aligned columns, appropriate whitespace, and dollar signs. full credit, your program must do the following: declare variables for each of the data items (first name, last name, etc) use c in to input all the variables store the firs, name, last name, and product name fields as strings and print them with cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!