Question: 2. Given this if/else statement for 2 variables yourquiz and cheating: } if (yourquiz === 100 && cheating === false){ println(hooray!); else if (yourquiz

2. Given this if/else statement for 2 variables "yourquiz" and "cheating": }

2. Given this if/else statement for 2 variables "yourquiz" and "cheating": } if (yourquiz === 100 && cheating === "false"){ println("hooray!"); else if (yourquiz === 100 && cheating === "true"){ println("oh no!"); } else if (yourquiz > 50 && cheating === "false"){ println("good work!"); } else{ println("please try again!"); } Fill in this table below with the correct outputs (no explanation needed). output yourquiz cheating 100 "true" 85 "false" 45 "true" 100 "false" (4 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!