Question: Generate an invoice in C programming language. thank you! Write program to generate the following invoice. Requirements are as follows 1) Declare variables (few are

 Generate an invoice in C programming language. thank you! Write program

Generate an invoice in C programming language. thank you!

Write program to generate the following invoice. Requirements are as follows 1) Declare variables (few are integers, few are strings, few are real numbers. The real numbers are to be declared as double.) Use descriptive names for all your variables. 2) Declare variables to hold your calculation results. All the variables are defined as doubles. 3) Initialize all your variables with some values. (During demo, I will ask you the change the values but the result need to look as below without modifying your printf statements.) 4) Use printfO statements to generate the invoice. Do not use cout. 5) There are 30 lines. You should have only 30 printf0 statements 6) The first two lines of the invoice shows column numbers. These also need to be generated in your output. 12345678901234567890123456789012345678901234567890123456789012345678901234567890 3 [Company Name 4 [Company Address Line 1 5 [City, State, Coutry 6 [Zip Code INVOICE 8 Bill To 9 [Bill to Name Ship To ] [ship to Name Invoicet 12345] 1 Invoice Date [mmddyyyyl P.o.t. I 1899345] Ship to Address Line 2 Due Date [mnddyyyyl 10 [Bill to Address Line 1 11 [Bill to Address Line 2 12 [Bill to Address Line 3 13 14 15 + QTY ! 16 ] [Ship to Address Line 1 [Ship to Address Line 3 I UNIT PRICE I I$32.21 I I2.91 1 l0.21 1 Subtotal l DESCRIPTION AMOUN 7+ 10 I iteml deseription 19+ 1 item2_description + 210 I item3_description 322.10 I 2.91 I 44.10 369.11 I 10.00 I Discount I Sales Tax Rate l 8. 25% 26 Sales Tax I 29.63 I TOTAL Is 388.74I

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!