2. Ihe following algorithm is designed to determinc a grade for a course thnt consists of quizzes. homcwork, and a final cxam: Step 2: Input weighting factors for quizzes (WQ), bomework (WH), and the...


How to code this in python


2. Ihe following algorithm is designed to determinc a grade for a course thnt consists of quizzes. homcwork, and a final cxam:<br>Step 2: Input weighting factors for quizzes (WQ), bomework (WH), and the final exam (WF).<br>Step 3: Input quir grades and determine an average quir grade (AQ).<br>Step 4: Input homework grades and determine an average homework grade (AH).<br>S: Ir'chis course has a linul exam grade, contimue lo step 6. I not, go to step 9.<br>Step 6: Input final exam grade (FE).<br>Step 7: Determine average grude AG nccording tn<br>WQ x AQ + WIH x AH + WF x FF<br>Ex 100%<br>AG =<br>WQ + WH + WF<br>Step 8: Go lo step 10.<br>Step 9: Determine average grade AG nccording to<br>WQ x AQ + WH x AH<br>x 100%<br>WQ + WH<br>AG =<br>Step 10: Print out course number, name, and average grade.<br>Step 11: Terminate cemputation.<br>(a) Write well-structured pscudocode to implement this algorithm.<br>(b) Write, debug, und document u structured computer progrum hused on this algorithm. Test it using the following data to<br>calculate a grade without the final cxam and a grade with the final exam: WQ 35; WH = 30; WF 35; quizzes = 98, 85,<br>90, 65, 99; homework - 95, 90, 87, 100, 92, 77; und final exam- 92.<br>

Extracted text: 2. Ihe following algorithm is designed to determinc a grade for a course thnt consists of quizzes. homcwork, and a final cxam: Step 2: Input weighting factors for quizzes (WQ), bomework (WH), and the final exam (WF). Step 3: Input quir grades and determine an average quir grade (AQ). Step 4: Input homework grades and determine an average homework grade (AH). S: Ir'chis course has a linul exam grade, contimue lo step 6. I not, go to step 9. Step 6: Input final exam grade (FE). Step 7: Determine average grude AG nccording tn WQ x AQ + WIH x AH + WF x FF Ex 100% AG = WQ + WH + WF Step 8: Go lo step 10. Step 9: Determine average grade AG nccording to WQ x AQ + WH x AH x 100% WQ + WH AG = Step 10: Print out course number, name, and average grade. Step 11: Terminate cemputation. (a) Write well-structured pscudocode to implement this algorithm. (b) Write, debug, und document u structured computer progrum hused on this algorithm. Test it using the following data to calculate a grade without the final cxam 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; und final exam- 92.

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here