A group of students is writing a program that will convert their letter grades into a 4.0 scale. For their program, they want a letter grade to be entered to be converted into the program. Which programming construct should be used to accomplish the selection and conversion?(1 point)

Responses

condition
condition

while loop
while loop

for loop
for loop

if-then-else

1 answer

To convert letter grades into a 4.0 scale based on the input letter grade, the best programming construct to use would be if-then-else. This construct allows you to check the input letter grade and determine the corresponding numeric value on the 4.0 scale based on predefined conditions.

Therefore, the correct response is if-then-else.