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
Numerical Methods For Engineers, 7 Ed
Additional Math Textbook Solutions
Precalculus: A Unit Circle Approach (3rd Edition)
Calculus: Early Transcendentals (2nd Edition)
Intro Stats, Books a la Carte Edition (5th Edition)
Intermediate Algebra (13th Edition)
Graphical Approach To College Algebra
Elementary Algebra For College Students (10th Edition)
- Q1: For, 0 <|z| < 1, evaluate the following integral where g is analyfunction inside and on the unit circle C: α) δε a) Sc 15 αξί b) Sc 9(5) -1/2 d. -2 1.'s integrale عناarrow_forwardQ4: State the Fundamental Theorem of Independent of Path and Morera's Theorem. Why can't apply these theorems to compute the integral contour. zdz, where C is closedarrow_forward18.11. If f(z) is analytic and |f(z)| ≤1/(1-2) in || < 1, show that |f'(0)| ≤ 4.arrow_forward
- SCAN GRAPHICS SECTION 9.3 | Percent 535 3. Dee Pinckney is married and filing jointly. She has an adjusted gross income of $58,120. The W-2 form shows the amount withheld as $7124. Find Dee's tax liability and determine her tax refund or balance due. 4. Jeremy Littlefield is single and has an adjusted gross income of $152,600. His W-2 form lists the amount withheld as $36,500. Find Jeremy's tax liability and determine his tax refund or balance due. 5. 6. Does a taxpayer in the 33% tax bracket pay 33% of his or her earnings in income tax? Explain your answer. In the table for single taxpayers, how were the figures $922.50 and $5156.25 arrived at? .3 hich percent is used. 00% is the same as multi- mber? 14. Credit Cards A credit card company offers an annual 2% cash-back rebate on all gasoline purchases. If a family spent $6200 on gasoline purchases over the course of a year, what was the family's rebate at the end of the year? Charitable t fractions, decimals, and 15. al Percent…arrow_forward1.5. Run Programs 1 and 2 with esin(x) replaced by (a) esin² (x) and (b) esin(x)| sin(x)|| and with uprime adjusted appropriately. What rates of convergence do you observe? Comment.arrow_forwardUse Taylor Series to derive the entries to the pentadiagonal and heptadiagonal (septadiagonal?) circulant matricesarrow_forward
- 1.3. The dots of Output 2 lie in pairs. Why? What property of esin(x) gives rise to this behavior?arrow_forward1.6. By manipulating Taylor series, determine the constant C for an error expansion of (1.3) of the form wj−u' (xj) ~ Ch¼u (5) (x;), where u (5) denotes the fifth derivative. Based on this value of C and on the formula for u(5) (x) with u(x) = esin(x), determine the leading term in the expansion for w; - u'(x;) for u(x) = esin(x). (You will have to find maxε[-T,T] |u(5) (x)| numerically.) Modify Program 1 so that it plots the dashed line corresponding to this leading term rather than just N-4. This adjusted dashed line should fit the data almost perfectly. Plot the difference between the two on a log-log scale and verify that it shrinks at the rate O(h6).arrow_forwardDefine sinc(x) = sin(x)/x, except with the singularity removed. Differentiate sinc(x) once and twice.arrow_forward
- Mathematics For Machine TechnologyAdvanced MathISBN:9781337798310Author:Peterson, John.Publisher:Cengage Learning,Algebra: Structure And Method, Book 1AlgebraISBN:9780395977224Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. ColePublisher:McDougal LittellGlencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw Hill
- Holt Mcdougal Larson Pre-algebra: Student Edition...AlgebraISBN:9780547587776Author:HOLT MCDOUGALPublisher:HOLT MCDOUGAL