Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create pseudocode for a program that computes a students test average. Design a program that prompts the user for a students ID number and three

Create pseudocode for a program that computes a students test average. Design a program that prompts the user for a students ID number and three test scores. Each test score is to be entered with a separate prompt.

Output is the students average of the three test scores and the students grade. The grading scale is the usual scale:

Average

Grade

>= 90 and <=100

A

>= 80 and <90

B

>= 70 and < 80

C

>= 60 and < 70

D

<60

F

Use a Do/While loop. Assume there will be at least one input student and scores. After each student is processed, ask the user if there is more input and set a flag to Y or N. Allow for either capital letters or lower case letters.

Use a named constant for the number of tests (In this case 3).

Define a function named computeAverage() wirh 3 parameters all Real for each of the 3 tests. The function will return a Real value, the average of the 3 test scores.

Add a counter to count the number of students processed. Add a running total to accumulate the students averages. After the loop ends calculate the overall average by dividing the running total by the number of students.

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

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions