The program block diagram is as shown in the figure.
Program:
A=80;B=75;C=95;< /p>
ZF=A+B+C;
PJF=ZF/3;
print(%io(2),ZF,PJF).
Assign the scores of the three subjects to three variables A, B, and C, and then operate and calculate the three variables to find their total score and average score. The naming rules for variables: consist of letters, numbers, It consists of a decimal point, but the first character must be a letter (either uppercase or lowercase). When naming, try to make it as clear as possible. For example, in this example, we can use the variable ZF to represent the total score, and PJF to represent the average score.