Question: The following algorithm is designed to determine a grade for a course that consists of quizzes, homework, and a final exam: Step 1: Input course

The following algorithm is designed to determine a grade for a course that consists of quizzes, homework, and a final exam:

Step 1: Input course number and name.

Step 2: Input weighting factors for quizzes (WQ), homework (WH), and the final exam (WF).

Step 3: Input quiz grades and determine an average quiz grade (AQ).

Step 4: Input homework grades and determine an average homework grade (AH).

Step 5: If this course has a final grade, continue to step 6. If not, go to step 9.

Step 6: Input final exam grade (FE).

Step 7: Determine average grade AG according to

WQ x AQ + WH x AH + WF x FE AG

Step 8: Go to step 10.Step 9: Determine average grade AG according to

WQ + WH + WF x 100%

Step 10: Print out course number, name, and average grade.Step 11: Tarminate computation.(a) Write well-structured pseudocode to implement this algorithm.(b) Write debug, and document a structured computer program based on this algorithm. Test it using the following data to calculate a grade without the final exam and a grade with the final exam: WQ = 35; WH = 30; WF = 35; quizzes = 98, 85, 90, 65, 99; homework = 95, 90, 87, 100, 92, 77; and final exam =92.

WQ x AQ + WH x AH + WF x FE AG WQ + WH + WF x 100%

Step by Step Solution

3.41 Rating (179 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a The following pseudocode provides an algorithm for this problem Notice that the input of the quizz... View full answer

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

Document Format (1 attachment)

Word file Icon

45-M-N-A-M-E-A (27).docx

120 KBs Word File

Students Have Also Explored These Related Numerical Analysis Questions!