Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write a program using c++. output should look exactly like what's shown in the picture. their should only be 30 printf() statements. use scanf_s and
write a program using c++. output should look exactly like what's shown in the picture. their should only be 30 printf() statements. use scanf_s and gets_s to read strings. thank you!
Th Student tou strings. is lab will familiarize the student on how to read user data from the keyboard. se scanf s0 to read integer and real numbers and use gets_s0 to read rite a C program to generate the following invoice. Requirements are as follows: 1) Copy lab2 folder into lab3. You start with the lab 2 program from last week. 2) Remove all initialization from your code. 3) Provide a prompt for each entry required in the invoice below and then read in the user data. For example, in line below. The prompt is "Please enter Invoice Number: ". When the user enters 12345 then this value is stored in variable invoice_number Please enter Invoice Number: 12345 5) There are 30 lines in the invoice. You should have only 30 printfO statements There should not be much modifications from lab 2. 1 2 12345678901234567890123456789012345678901234567890123456789012345678901234567890 3 [Company Name 4 [Company Address Line 1 5 [City, State, Coutry 6 [Zip Code INVOICE Ship To ] [Ship to Name Invoice # [ 12345] ] Invoice Date [mmddyyyy] P..# [ 1898345] Due Date [mmddyyyy] 8 Bill To 9 [Bill to Name 10 [Bill to Address Line 1 [Ship to Address Line 1 ] 11 [Bill to Address Line 2 [Ship to Address Line 2 12 [Bill to Address Line 3 [Ship to Address Line 3 1 13 14 += 15 + QTY I 16 + +5 DESCRIPTION I UNIT PRICE I AMOUN I $ 32.21 I $ 2.91 $ I 0.21 1$ Subtotal I 322.10 + 10 | iteml_description 1 I item2_description 21 210 I item3_description 18 +-- 20+-+ 44.10 I 369.11 I Discount$ 10.00 I 2 4 25 26 Sales Tax Rate sales Tax 8. 25% 29.63 28 29 30 TOTAL I 388.74 I Th Student tou strings. is lab will familiarize the student on how to read user data from the keyboard. se scanf s0 to read integer and real numbers and use gets_s0 to read rite a C program to generate the following invoice. Requirements are as follows: 1) Copy lab2 folder into lab3. You start with the lab 2 program from last week. 2) Remove all initialization from your code. 3) Provide a prompt for each entry required in the invoice below and then read in the user data. For example, in line below. The prompt is "Please enter Invoice Number: ". When the user enters 12345 then this value is stored in variable invoice_number Please enter Invoice Number: 12345 5) There are 30 lines in the invoice. You should have only 30 printfO statements There should not be much modifications from lab 2. 1 2 12345678901234567890123456789012345678901234567890123456789012345678901234567890 3 [Company Name 4 [Company Address Line 1 5 [City, State, Coutry 6 [Zip Code INVOICE Ship To ] [Ship to Name Invoice # [ 12345] ] Invoice Date [mmddyyyy] P..# [ 1898345] Due Date [mmddyyyy] 8 Bill To 9 [Bill to Name 10 [Bill to Address Line 1 [Ship to Address Line 1 ] 11 [Bill to Address Line 2 [Ship to Address Line 2 12 [Bill to Address Line 3 [Ship to Address Line 3 1 13 14 += 15 + QTY I 16 + +5 DESCRIPTION I UNIT PRICE I AMOUN I $ 32.21 I $ 2.91 $ I 0.21 1$ Subtotal I 322.10 + 10 | iteml_description 1 I item2_description 21 210 I item3_description 18 +-- 20+-+ 44.10 I 369.11 I Discount$ 10.00 I 2 4 25 26 Sales Tax Rate sales Tax 8. 25% 29.63 28 29 30 TOTAL I 388.74
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started