Question 3. 3. (TCOs 4 and 8) Write a program that receives three test scores. C
ID: 639343 • Letter: Q
Question
Question 3.3. (TCOs 4 and 8) Write a program that receives three test scores. Calculate and display the student?s average. Also display one of the following messages, based on the criteria shown.
Congratulations, Dean?s List!?If average is 80 or more.
Room for improvement?If average is 60 to less than 80.
Please make tutoring appointment?If average is below 60.
Use structured pseudocode as demonstrated in the lectures for code, ensure that all variables are declared, prompt the user for the appropriate input, and display a meaningful output message. Ensure the three test scores are greater than 0. (Points : 10)
Assume that X = 20, Y = 15, and Z = 10. Which will be the output? (Points : 5) Green 5
Red 5
Blue 5
Green 10
Explanation / Answer
1 and 2 questions images are not visible..please look at once
and third one is here
#include<stdio.h>
main(){
int i,avg=0,score,total;
for(i=0;i<3;i++){
printf("enter %d test scores",i+1);
scanf("%d",&score);
total=total+score;
}
printf("avg=%d",total/3);
if(avg>=80){
printf("Congratulations, Dean
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.