Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Compile, debug (find and fix any syntax errors), and execute the program and fix any semantic errors: Here is the proper question. Also, note, that

Compile, debug (find and fix any syntax errors), and execute the program and fix any semantic errors:

image text in transcribed

Here is the proper question. Also, note, that this is a .C program and we are supposed to do this on PuTTY

image text in transcribed

/* This C program demonstrates the switch statement without using breaks. */ * The program is tested on MS Visual C+ platform include #pragma warning(disable : 4996) it void main() ( char ch; int f, a = 10, b = 20; printf("ch cn", ch); switch (ch) case '+': f a + b; printf("f-%d ", case .-': f = a - b; printf("f = %d ", case .*.. f-a * b; printf( "f %d ", case ./. f = a / b; printf( "f = %d ", default: printf("invalid operator "); f); f); f); f); Rrintf("sh-%c ", sh) ; switch (ch) case .+': f- a + b; printf("f %d ", case .-': f- a - b; printf("f = %d ", case .*.. f- a * b; printf("f = %d ", case : f = a / b; printf("f = %d ", default: printf("invalid operator "); f); f); f); f); printf("sh-%c ", sh) ; switch (ch) case .+. : f- a + b; printf("f = %d ", case .-': f = a - b; printf("f = %d ", case .*.. f- a * b; printf("f %d ", case : f- a / b; printf("f-%d ", default: printf("invalid operatorIn") f); f); f); f); printf("ch= %c ", Ch); switch (ch) case .+': f a + b; printf( "f = %d ", case .-': f = a - b; Rrintf("f = %d ", case .*.. f- a * b; printf("f = %d ", case ./. : f- a / b; printf("f = %d ", default: printf("invalid operator "); f); f); f); f); printf("ch = %c ", Ch); switch (ch) { case .+': f- a + b; printf("f = %d ", case .-': f- a - b; Rrintf("f-%d ", case .*.. f- a * b; printf("f-%d ", case .,.: f = a / b; Rrintf("f-%d ", default: printf("invalid operator "); f); f); f); f)

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_2

Step: 3

blur-text-image_3

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 Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions

Question

=+ Does this site have scientific, medical, or legal advice?

Answered: 1 week ago

Question

Explain budgetary Control

Answered: 1 week ago

Question

Solve the integral:

Answered: 1 week ago

Question

What is meant by Non-programmed decision?

Answered: 1 week ago

Question

What are the different techniques used in decision making?

Answered: 1 week ago