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 solution
Chapter 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)
- Which diagram(s) represent the following relationships An injective function from A to B? A surjective function from A to B? An injective function from B to A? A surjective function from B to A?arrow_forwardDetermine if each statement is true or false. If the statement is false, provide a brief explanation: a) There exists x = R such that √x2 = -x. b) Let A = {x = ZIx = 1 (mod 3)} and B = {x = ZIx is odd}. Then A and B are disjoint. c) Let A and B be subsets of a universal set U. If x = A and x/ € A - B,then x = An B.| E d) Let f : RR be defined by f (x) = 1 x + 2 1. Then f is surjective.arrow_forwardWrite the negation of the definition of an injective functionarrow_forward
- Let U= {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, A = {xeU Ix is a multiple of 3}, and B = {x = UIx = 0 (mod 2)}. Use the roster method to list all elements in each of the following sets: a) A, b) B, c) A u B, d) B – A, e) A^cn Barrow_forwardThe function f is; Injective (only), Surjective (only), Bijective, or none? show workarrow_forwardFor each a Є Z, if a ‡0 (mod 3), then a² = 1 (mod 3).arrow_forward
- find: f(3)=? , and the set of all preimages of 2 is ?arrow_forwardConstruct tables showing the values of alI the Dirichlet characters mod k fork = 8,9, and 10. (please show me result in a table and the equation in mathematical format.)arrow_forwardExample: For what odd primes p is 11 a quadratic residue modulo p? Solution: This is really asking "when is (11 | p) =1?" First, 11 = 3 (mod 4). To use LQR, consider two cases p = 1 or 3 (mod 4): p=1 We have 1 = (11 | p) = (p | 11), so p is a quadratic residue modulo 11. By brute force: 121, 224, 3² = 9, 4² = 5, 5² = 3 (mod 11) so the quadratic residues mod 11 are 1,3,4,5,9. Using CRT for p = 1 (mod 4) & p = 1,3,4,5,9 (mod 11). p = 1 (mod 4) & p = 1 (mod 11 gives p 1 (mod 44). p = 1 (mod 4) & p = 3 (mod 11) gives p25 (mod 44). p = 1 (mod 4) & p = 4 (mod 11) gives p=37 (mod 44). p = 1 (mod 4) & p = 5 (mod 11) gives p 5 (mod 44). p = 1 (mod 4) & p=9 (mod 11) gives p 9 (mod 44). So p =1,5,9,25,37 (mod 44).arrow_forward
- how to construct the following same table?arrow_forwardplease work out more details give the solution.arrow_forwardBurger Dome sells hamburgers, cheeseburgers, french fries, soft drinks, and milk shakes, as well as a limited number of specialty items and dessert selections. Although Burger Dome would like to serve each customer immediately, at times more customers arrive than can be handled by the Burger Dome food service staff. Thus, customers wait in line to place and receive their orders. Burger Dome analyzed data on customer arrivals and concluded that the arrival rate is 30 customers per hour. Burger Dome also studied the order-filling process and found that a single employee can process an average of 44 customer orders per hour. Burger Dome is concerned that the methods currently used to serve customers are resulting in excessive waiting times and a possible loss of sales. Management wants to conduct a waiting line study to help determine the best approach to reduce waiting times and improve service. Suppose Burger Dome establishes two servers but arranges the restaurant layout so that an…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



