Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

2.6 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 home- work 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 AG= WQ X AQ + WH X AH + WF X FE x 100% WQ + WH + WF Step 8: Go to step 10. Step 9: Determine average grade AG according to AG = WQ x AQ + WH X AH x 100% WQ+ WH Step 10: Print out course number, name, and average grade. Step 11: Terminate 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 92. exam = 2.6 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 home- work 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 AG= WQ X AQ + WH X AH + WF X FE x 100% WQ + WH + WF Step 8: Go to step 10. Step 9: Determine average grade AG according to AG = WQ x AQ + WH X AH x 100% WQ+ WH Step 10: Print out course number, name, and average grade. Step 11: Terminate 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 92. exam =

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

Cornerstones of Financial and Managerial Accounting

Authors: Rich Jones, Mowen, Hansen, Heitger

1st Edition

9780538751292, 324787359, 538751290, 978-0324787351

Students also viewed these Accounting questions