Draw the flowchart then write the C program using switch. The program reads wo marks for a student. Then it reads one integer number opr. According to he value of opr, the program will do some operation on the two marks ccording to the following table: Value of opr Required operation Calculating then displaying average of the two marks. 3 5 or 7 Displaying the maximum mark. Calculating then displaying the difference between the two marks. Any other value Wrong Operation
Draw the flowchart then write the C program using switch. The program reads wo marks for a student. Then it reads one integer number opr. According to he value of opr, the program will do some operation on the two marks ccording to the following table: Value of opr Required operation Calculating then displaying average of the two marks. 3 5 or 7 Displaying the maximum mark. Calculating then displaying the difference between the two marks. Any other value Wrong Operation
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.5: A Closer Look: Loop Programming Techniques
Problem 15E: (Program) Write a program to simulate the rolling of two dice. If the total of the two dice is 7 or...
Related questions
Question
![Draw the flowchart then write the C program using switch. The program reads
two marks for a student. Then it reads one integer number opr. According to
the value of opr, the program will do some operation on the two marks
according to the following table:
Value of opr
Required operation
Calculating then displaying average of the two marks.
Displaying the maximum mark.
Calculating then displaying the difference between the
two marks.
3
5 or 7
9.
Any other value
Wrong Operation](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F0879e096-7c33-44db-b4ff-064118d64f69%2F89800ff1-8b02-4956-b261-fd45a4cfc6ba%2Fx72qa2h_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Draw the flowchart then write the C program using switch. The program reads
two marks for a student. Then it reads one integer number opr. According to
the value of opr, the program will do some operation on the two marks
according to the following table:
Value of opr
Required operation
Calculating then displaying average of the two marks.
Displaying the maximum mark.
Calculating then displaying the difference between the
two marks.
3
5 or 7
9.
Any other value
Wrong Operation
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning