Question: all one question, any help would be apprecieted 5. Assume testVal has been declared as an Integer. For each of the following pseudocode segments, determine

5. Assume testVal has been declared as an Integer. For each of the following pseudocode segments, determine what the value of x will contain after executing the pseudocode. Do this for each of the following values of testVal. 1 (1) 3 (111) 5 (iv) 6 (vi) -5 (vu) 10 testVal the final value of I will be: is: 1 3 5 6 9 -5 10 Week 7 - Declare Boolean passedCourse Declare Character letterGrade Display "Input the letter grade" Input letter Grade If letterGrade == 'F' Then Set passedCourse = False Else Set passedCourse True End If If passedCourse Then Display "Congratulations! You passed Else Display "Please repeat the course. End If 5. Assume testVal has been declared as an Integer. For each of the following pseudocode segments, determine what the value of x will contain after executing the pseudocode. Do this for each of the following values of testVal. 1 (1) 3 (111) 5 (iv) 6 (vi) -5 (vu) 10 testVal the final value of I will be: is: 1 3 5 6 9 -5 10 Week 7 - Declare Boolean passedCourse Declare Character letterGrade Display "Input the letter grade" Input letter Grade If letterGrade == 'F' Then Set passedCourse = False Else Set passedCourse True End If If passedCourse Then Display "Congratulations! You passed Else Display "Please repeat the course. End If
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
