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
Step 3: Input quiz grades and determine an average quiz grade
Step 4: Input homework grades and determine an average homework grade
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
Step 7: Determine average grade AG according to
Step 8: Go to step 10.
Step 9: Determine average grade AG according to
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:
Want to see the full answer?
Check out a sample textbook solutionChapter 2 Solutions
INTERNATIONAL EDITION---Numerical Methods for Engineers, 7th edition
Additional Math Textbook Solutions
Basic Technical Mathematics
Advanced Engineering Mathematics
Fundamentals of Differential Equations (9th Edition)
Mathematics for the Trades: A Guided Approach (11th Edition) (What's New in Trade Math)
Elementary Statistics ( 3rd International Edition ) Isbn:9781260092561
- Advanced Engineering MathematicsAdvanced MathISBN:9780470458365Author:Erwin KreyszigPublisher:Wiley, John & Sons, IncorporatedNumerical Methods for EngineersAdvanced MathISBN:9780073397924Author:Steven C. Chapra Dr., Raymond P. CanalePublisher:McGraw-Hill EducationIntroductory Mathematics for Engineering Applicat...Advanced MathISBN:9781118141809Author:Nathan KlingbeilPublisher:WILEY
- Mathematics For Machine TechnologyAdvanced MathISBN:9781337798310Author:Peterson, John.Publisher:Cengage Learning,