Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This Lab contains two parts. There are 10 students in a class. The class teacher conducts a test and decides to calculate the average score

image text in transcribed

This Lab contains two parts. There are 10 students in a class. The class teacher conducts a test and decides to calculate the average score of the class. To help the teacher in calculating the class average, implement a C program using for or while loop. Follow the criteria below to implement your program: There are 10 students in the class. Maximum score for the test is 100. Prompt the user to enter a score in the range 0-100 for each student. If the user enters an incorrect score, your program should prompt the user to enter the score again, and continue until a valid score is entered. For valid scores, calculate their average and print the result. Print the average with 2 decimal places. Suppose a movie theatre has 5 screens, and there are 5 movies playing on the 5 screens. The list below shows the screen number each movie is playing. Moana La La Land Split Hidden Figures Resident Evil Write a C program using the switch decision statement to print the movie name when entering the screen number. Sample interactions with your programs are shown below

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

Students also viewed these Databases questions