Question: The pseudocode given below is ( incorrectly ) written to calculate and display the average of 2 given numbers ( note that / is used

The pseudocode given below is (incorrectly) written to calculate and display the average of 2 given numbers (note that / is used as the divide operator in programming). Which of the following can be used to replace step 3 so that the average is calculated correctly?
Figure 1.14
Select an answer and submit. For keyboard navigation, use the up/down arrow keys to select an answer.
a
Calculate average as (number1+ number2)/2
b
Calculate average as (number1+ number2/2)
c
Calculate average as number1+ number2

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 Databases Questions!