Q 116

Assume the following variables have been declared and given values elsewhere: boolean completedProject; Int programsDone; Double classPercentage; A student will pass programming class if and only if they have a percentage of 70.0% or higher and have either completed the project or they have done 5 or more programs. Which of the following statements assigns the Boolean variable passProgramming correctly? A)passProgramming = (classPercentage >= 0.7) && (programsDone >= 5 || completedProject); B)passProgramming = (classPercentage >= 0.7) && (programsDone >= 5) && (completedProject); C)passProgramming = (classPercentage >= 0.7) || (programsDone >= 5) || (completedProject); D)passProgramming = ((classPercentage >= 0.7) && (programsDone >= 5 )) && completedProject;

Multiple Choice