sum=0
num = 0
loop
Input the name, address, pct
if name == "ZZZ" then exit loop
num = num + 1
sum = sum + pct
print name,address,pct
end loop
avg = sum/num
print sum,avg
You might want to include a prompt and output labels and formatting.
Write the pseudocode to represent the following: Input: Input the name, address, and exam percentage of a students. Process: Calculate the total percentage marks of all the students and the class average. Output: For each student, print the name, address, and percentage. When a student name of “ZZZ” is input, print the total percentage marks and the class average
2 answers
Input: Input the name, address, and exam percentage of a
students.
Process: Calculate the total percentage marks of all the students
and the class average.
Output: For each student, print the name, address, and
percentage. When a student name of “ZZZ” is input, print the total
percentage marks and the class average.
students.
Process: Calculate the total percentage marks of all the students
and the class average.
Output: For each student, print the name, address, and
percentage. When a student name of “ZZZ” is input, print the total
percentage marks and the class average.