Numerical Methods for Engineers
Numerical Methods for Engineers
7th Edition
ISBN: 9780073397924
Author: Steven C. Chapra Dr., Raymond P. Canale
Publisher: McGraw-Hill Education
bartleby

Videos

Textbook Question
Book Icon
Chapter 2, Problem 6P

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

AG = WQ × AQ + WH × AH + WF × FE WQ + WH + WF × 100 %

Step 8: Go to step 10.

Step 9: Determine average grade AG according to

AG = WQ × AQ + WH × AH WQ + WH × 100 %

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. Testitusingthefollowingdatato calculate a grade without the final exam and a grade with the final exam: WQ = 30; WH = 40; WF = 30 ; quizzes = 98, 95, 90, 60, 99 ; homework = 98 ,   95 ,   86 ,   100 ,   100 ,   77 ; and final exam = 91 .

Blurred answer

Chapter 2 Solutions

Numerical Methods for Engineers

Additional Math Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Background pattern image
Advanced Math
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, advanced-math and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Algebra: Structure And Method, Book 1
Algebra
ISBN:9780395977224
Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:McDougal Littell
Text book image
Glencoe Algebra 1, Student Edition, 9780079039897...
Algebra
ISBN:9780079039897
Author:Carter
Publisher:McGraw Hill
Text book image
Elementary Geometry For College Students, 7e
Geometry
ISBN:9781337614085
Author:Alexander, Daniel C.; Koeberlein, Geralyn M.
Publisher:Cengage,
Text book image
Mathematics For Machine Technology
Advanced Math
ISBN:9781337798310
Author:Peterson, John.
Publisher:Cengage Learning,
Graph Theory: Euler Paths and Euler Circuits; Author: Mathispower4u;https://www.youtube.com/watch?v=5M-m62qTR-s;License: Standard YouTube License, CC-BY
WALK,TRIAL,CIRCUIT,PATH,CYCLE IN GRAPH THEORY; Author: DIVVELA SRINIVASA RAO;https://www.youtube.com/watch?v=iYVltZtnAik;License: Standard YouTube License, CC-BY