Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago