Question: ONLY PART E-20. #include #define CENTERHEADERA. #define REPORTHEADERA #define REPORTHEADERB #defineREPORTLNFMT #define addr(var) &var Student Average Score Calculatorln Name TI T2 T3 Avgln

ONLY PART E-20.

ONLY PART E-20. #include #define CENTERHEADERA. #define REPORTHEADERA" #define REPORTHEADERB " #defineREPORTLNFMT" #define addr(var) &var Student Average Score Calculatorln Name TI T2 T3Avgln" in', %3d%3d%4dm" %-10s %3d int main(void) char studentName[6+1]; int t1,t2,t3; int

#include #define CENTERHEADERA. #define REPORTHEADERA" #define REPORTHEADERB " #defineREPORTLNFMT " #define addr(var) &var Student Average Score Calculatorln Name TI T2 T3 Avgln" in', %3d%3d%4dm" %-10s %3d int main(void) char studentName[6+1]; int t1,t2,t3; int avgScore; printf(" Enter student name>"); scanf("%s", studentName); printf(" Enter three(3) test scores separate by space"); scanf"%d %d %d",addriti),addr(t2),addr(t3)); avgScore (tl +12+t3)/3; printf( CENTERHEADER); printf( REPORTHEADERA); printf( REPORTHEADERB); printf(REPORTLNFMT,studentName,tl,t2,t3,avgScore); flush(stdin).getcharO; return 0 I/ end of main() 35-50) For the "C" program above, provide the following a-5) Show the required data declarations b-10) Draw the flowchart for the program. c-5) Assume the avgScore is calculated by a module named calcAvgScore(). Show the module interface as for the proposed module and draw its flowchart. d-10) Decompose the program into a modular hierarchy - show the hichart which represents the decomposition with in-out parameter annotations #include #define CENTERHEADERA. #define REPORTHEADERA" #define REPORTHEADERB " #defineREPORTLNFMT " #define addr(var) &var Student Average Score Calculatorln Name TI T2 T3 Avgln" in', %3d%3d%4dm" %-10s %3d int main(void) char studentName[6+1]; int t1,t2,t3; int avgScore; printf(" Enter student name>"); scanf("%s", studentName); printf(" Enter three(3) test scores separate by space"); scanf"%d %d %d",addriti),addr(t2),addr(t3)); avgScore (tl +12+t3)/3; printf( CENTERHEADER); printf( REPORTHEADERA); printf( REPORTHEADERB); printf(REPORTLNFMT,studentName,tl,t2,t3,avgScore); flush(stdin).getcharO; return 0 I/ end of main() 35-50) For the "C" program above, provide the following a-5) Show the required data declarations b-10) Draw the flowchart for the program. c-5) Assume the avgScore is calculated by a module named calcAvgScore(). Show the module interface as for the proposed module and draw its flowchart. d-10) Decompose the program into a modular hierarchy - show the hichart which represents the decomposition with in-out parameter annotations

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!