Asked by rhandzu

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

Answers

Answered by oobleck
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.
Answered by Anonymous
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.
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions