Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

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

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

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions