Question: Classwork 3.3: Correct the program below that will read two numbers: number of drinks and number of sandwiches, and display the total bill calculated as:

 Classwork 3.3: Correct the program below that will read two numbers:

Classwork 3.3: Correct the program below that will read two numbers: number of drinks and number of sandwiches, and display the total bill calculated as: Total bill Number of Drinks X 5.50+ Number of Sandwiches X 10.00. Answer the questions below 1. Find the instruction in the program with the following errors: C-Program with error: Write the correct program bere int main (void) floats numberofDeinks, numberofSandwiches loat botalBalling: rint"Enter number of Drinks'n") scanR"%d"&mmberofdrinks); printft "Enter number of Sandwichesn) scantif &numberofSandwiches) totalbilling-numberoDrinks 5.50+ numberofsandwiches/10.00 printR"Total bill _ %fn.otalBulling); return 0 Iasert the correct output here: Prepured by Dr.Hussein Abdul-Rahman & Mr. Michaal Obenque 10 EGN 2712 Applied Programming a. Syntax error b. Logic Error c. Run time error

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!