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

FS F6 F7 Scrik 46. Wha t are the values of count and num afler the following cod

ID: 3915817 • Letter: F

Question

FS F6 F7 Scrik 46. Wha t are the values of count and num afler the following code is executed? This question is worth 4 points int count 10 int num4: while (count > 6) if ((count 2) - 1) num += 3; else num-= 2; count=-; count nuum PART VI- PSEUDOCODE Record your solution on the next two pages of this booklet. For Question 47, write only the pseudocode. 47. Write the pseudocode only for this program, including a list of all constants and variables needed for your solution. This question is worth 20 points. Use the next two (2) pages to write your solution. Usc the vertical lines to line up your indentation Specification Write a program that asks the user to enter a íinal grade average in the range of 0-100. Using aested if else statements, the program will display the corresponding letter grade: F less than 60 D 60 to 69 C 70 to 79 B 80 to 89 A 90 and higher

Explanation / Answer

46.

       count = 6

       num = 6

47.

The pseudocode is:
   int x;
   printf("Enter the final grade average in the range of 0 -100:"); /* user is asked to enter the final grade average */
   scanf("%d",&x);
   if(x<60)
   printf("The grade is: F");
   else if(x>=60 && x<=69)
   printf("The grade is: D");
   else if(x>=70 && x<=79)
   printf("The grade is: C");
   else if(x>=80 && x<=89)
   printf("The grade is: B");
   else    /* The grade average is in the range of 90 - 100 */
   printf("The grade is: A");