Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribedimage text in transcribedimage text in transcribed

#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

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

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

ISBN: 133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago