Question
need help how do this program.
Use the top-down modular approach and pseudocode to design a suitable program to solve it.
Alberta Einstein teaches a business class at Podunk University. To evaluate the students in this class, she has given three tests. It is now the end of the semester and Alberta asks you to create a program that inputs each student’s test scores and outputs the average score for each student and the overall class average. (Hint: The outer loop should allow for Ms. Einstein to input all the students, one by one, and the inner loop should accept the three exam scores and compute the average for each student.)
Use the top-down modular approach and pseudocode to design a suitable program to solve it.
Alberta Einstein teaches a business class at Podunk University. To evaluate the students in this class, she has given three tests. It is now the end of the semester and Alberta asks you to create a program that inputs each student’s test scores and outputs the average score for each student and the overall class average. (Hint: The outer loop should allow for Ms. Einstein to input all the students, one by one, and the inner loop should accept the three exam scores and compute the average for each student.)
Answers
for n=1,3
print "name: ";read name
sum=0
for t=1,3
print "test score #:,t
read s
sum += s
next t
avg = sum/3
print "average: ",avg
next n
You might want to use an array or two, but the problem didn't say to do so.
print "name: ";read name
sum=0
for t=1,3
print "test score #:,t
read s
sum += s
next t
avg = sum/3
print "average: ",avg
next n
You might want to use an array or two, but the problem didn't say to do so.
Related Questions
For each of the following problems, use the top-down modular approach
and pseudocode to design a su...
When building a house, a structured, modular approach is better than a haphazard approach. Explain...
Can someone please explain to me how I can get the solution for this question. Use the top-down modu...
Develop a menu-driven program that inputs two numbers and, at the user’s
option, finds their sum, d...