
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
EBK NUMERICAL METHODS FOR ENGINEERS
Additional Engineering 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)
- Auto Controls A union feedback control system has the following open loop transfer function where k>0 is a variable proportional gain i. for K = 1 , derive the exact magnitude and phase expressions of G(jw). ii) for K = 1 , identify the gaincross-over frequency (Wgc) [where IG(jo))| 1] and phase cross-overfrequency [where <G(jw) = - 180]. You can use MATLAB command "margin" to obtain there quantities. iii) Calculate gain margin (in dB) and phase margin (in degrees) ·State whether the closed-loop is stable for K = 1 and briefly justify your answer based on the margin . (Gain marginPhase margin) iv. what happens to the gain margin and Phase margin when you increase the value of K?you You can use for loop in MATLAB to check that.Helpful matlab commands : if, bode, margin, rlocus NO COPIED SOLUTIONSarrow_forwardAuto Controls Hand sketch the root Focus of the following transfer function How many asymptotes are there ?what are the angles of the asymptotes?Does the system remain stable for all values of K NO COPIED SOLUTIONSarrow_forward-400" 150" in Datum 80" 90" -280"arrow_forward
- 7) Please draw the front, top and side view for the following object. Please cross this line outarrow_forwardA 10-kg box is pulled along P,Na rough surface by a force P, as shown in thefigure. The pulling force linearly increaseswith time, while the particle is motionless att = 0s untilit reaches a maximum force of100 Nattimet = 4s. If the ground has staticand kinetic friction coefficients of u, = 0.6 andHU, = 0.4 respectively, determine the velocityof the A 1 0 - kg box is pulled along P , N a rough surface by a force P , as shown in the figure. The pulling force linearly increases with time, while the particle is motionless at t = 0 s untilit reaches a maximum force of 1 0 0 Nattimet = 4 s . If the ground has static and kinetic friction coefficients of u , = 0 . 6 and HU , = 0 . 4 respectively, determine the velocity of the particle att = 4 s .arrow_forwardCalculate the speed of the driven member with the following conditions: Diameter of the motor pulley: 4 in Diameter of the driven pulley: 12 in Speed of the motor pulley: 1800 rpmarrow_forward
- 4. In the figure, shaft A made of AISI 1010 hot-rolled steel, is welded to a fixed support and is subjected to loading by equal and opposite Forces F via shaft B. Stress concentration factors K₁ (1.7) and Kts (1.6) are induced by the 3mm fillet. Notch sensitivities are q₁=0.9 and qts=1. The length of shaft A from the fixed support to the connection at shaft B is 1m. The load F cycles from 0.5 to 2kN and a static load P is 100N. For shaft A, find the factor of safety (for infinite life) using the modified Goodman fatigue failure criterion. 3 mm fillet Shaft A 20 mm 25 mm Shaft B 25 mmarrow_forwardPlease sovle this for me and please don't use aiarrow_forwardPlease sovle this for me and please don't use aiarrow_forward
- Principles of Heat Transfer (Activate Learning wi...Mechanical EngineeringISBN:9781305387102Author:Kreith, Frank; Manglik, Raj M.Publisher:Cengage Learning
