Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Prompt the user to enter the integers scores for Exam 1, Exam 2 and Final Exam,

ID: 3861130 • Letter: P

Question

Prompt the user to enter the integers scores for Exam 1, Exam 2 and Final Exam, read the scores, compute the weighted average score (using the following formula), and display a labeled output about the weighted average score. avgScore = 128/637 elScore + 307/1024 e2Score + finScore/2 For the purpose of this exercise, be sure to observe the following: You Must perform (in the appropriate order of course) ALL the additions, multiplications and division shown in the given Formula. (You should Not resort to simplifying the formula in some way, perhaps to make the computation more efficient.) You MUST use bit-shifting to effect multiplications and divisions involving power of 2. Note that 2, 128 and 1024 corresponds to some powers of 2 (but not 307 and 637). Assume it is the intent to simply discard the fractional portion when a division is performed. When evaluating the first and second terms on the right side (i.e., the Exam 1 and Exam 2 contributions respectively). however, you MUST perform (in each case) the division after (Not before) the multiplication (otherwise, accuracy may be unnecessary lost). For any multiplication and division operation that cannot be effected with simple (one-time) bit-shifting, you MUST use another "true" instruction (NOT a pseudoinstruction) instead

Explanation / Answer

Performed the same way using power of small integers. Modifications can be done to this make sure about the flow. It will ask for the inputs I have designed in that way. It can also be modified to fixed input then code will be reduced and little modified as well.