00:01
Hello student, here i have written the program.
00:03
So this program first reads the user input for the personal information, name and address and detail about the item to be purchased, name, cost and quantity and then it calculates the total cost, tax, shipping and final amount due based on the provided data.
00:19
Finally it prints the invoice with all the entered information and calculated value.
00:24
So here is the c+ + program that reads the required data for an online purchase and calculate the total cost, tax, shipping and final amount due.
00:34
The program then prints an invoice with the entered data.
00:37
So here i have written the c+ + program.
00:40
Include iostream, include string, using namespace standard, int main, so here function is main, int is a type, variable to store user input.
00:49
So here string type first name, last name, street address, city, state, zip and item name.
00:56
All of these are string type and here item cost will be a double type, tax total will be a double, tax will be a double type, shipping final, shipping will be a double and final amount and here quantity will be the integer type.
01:12
So here read user input.
01:14
So we will take the data from the user and with the help of a ceo would enter your first name.
01:19
So with the help of a getline here, c in first name will be read.
01:24
So here c out enter your last name.
01:27
So with the help of a getline, last name will be read for the string type data.
01:32
C out enter the street address for the string type data address will be read with the help of a getline function.
01:39
C out entry your city, state and zip code.
01:42
So city, state, zip code will be entered by the getline.
01:45
It will be read...