134k views
2 votes
I need help with this as soon as possible pls.

Complete the pseudocode for the following grading scale, following the style of the existing pseudocode.

Numerical Grade

Letter Grade

100 - 90

A

89 - 80

B

79 - 70

C

69 - 60

D

<= 59.4

F



/*IF grade >= 90

/* PRINT “A”

/*ELSEIF grade >=80 AND grade <= 89

/* PRINT “B”

/*

/* PRINT “C”

/*ELSEIF grade >=60 AND grade <= 69

/* PRINT “D”

/*ELSE

/* PRINT “F”

(It is not/*ELSEIF grade>=70 AND <=79)

User Ortiz
by
5.7k points

1 Answer

5 votes

Answer:

/*ELSEIF grade >=70 AND grade <= 79

Step-by-step explanation:

You have to have the variable grade in both parts of the ELSEIF statement >=70 and <=79

The hint says t is not/*ELSEIF grade>=70 AND <=79 since this statement has the variable grade only at the >= part not the <= part

User Pedro Gaspar
by
6.1k points