The pseudocode to calculate the average of the test scores until the user enters a negative input serves as a prototype of the actual program
<h3>The errors in the pseudocode</h3>
The errors in the pseudocode include:
- Inclusion of unusable segments
- Incorrect variables
- Incorrect loops
<h3>The correct pseudocode</h3>
The correct pseudocode where all errors are corrected and the unusable segments are removed is as follows:
start
Declarations
num test1
num test2
num test3
num average
output "Enter score for test 1 or a negative number to quit"
input test1
while test1 >= 0
output "Enter score for test 2"
input test2
output "Enter score for test 3"
input test3
average = (test1 + test2 + test3) / 3
output "Average is ", average
output "Enter score for test 1 or a negative number to quit"
input test1
endwhile
output "End of program"
stop
Read more about pseudocodes at:
brainly.com/question/11623795
Answer:
Explanation:
One group of students did an experiment to study the movement of ocean water. The steps of the experiment are listed below.
Fill a rectangular baking glass dish with water.
Place a plastic bag with ice in the water near the left edge of the dish.
Place a lighted lamp near the left edge of the dish so that its light falls directly on the plastic bag.
Put a few drops of ink in the water.
The student did not observe any circulation of ink in the water as expected because the experiment had a flaw. Which of these statements best describes the flaw in the experiment? (2 points)
Not enough ink was added.
Not enough water was taken.
The dish was too small for the experiment.
The lamp and the ice bag were at the same place.
Answer:
d) y=x++
Explanation:
In all 3 statements:
y= ++x;
y=x=5;
y=5;
The value of y is equal to 5.
However in the statement y=x++, the value of 5 is equal to value of x prior to the increment operation. The original value of x was 4. So the value of y will be 4. Note that after the statement execution, the value of x will be updated to 5. In effect y=x++ can be visualized as a sequence of following steps:
x=4;
y=x;
x=x+1;
The graph would have to be pointing completely down to be falling freely.