Click here to Skip to main content
15,896,726 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
please help me how to pseudocode this

Prompt the user to enter his/her plform grade
Prompt the user to enter his/her math grade
Prompt the user to enter his/her intrcs grade
Compute the average of the three user inputs
Display an output that explains the answer as the average grade (annotation)
Display the result

What I have tried:

begin
declare integer plformGrade//first
declare integer mathGrade//second
declare integer intrcsGrade//third
input plformGrade, matheGrade, intrcsGrade //declare integers
sum=plformGrade+mathGrade+intrcsGrade
//the sum of Grade's combination
output "the sum of the average grade is"
guys i dont know what next because it is needed to annotate
Posted
Updated 16-Oct-20 22:16pm
v2

Stop going "i can't do this" and think: you have to output an average, and you know what an average is:
average = Sum of items / number of items
For example: the average of the first five non zero integers is:
av = (1 + 2 + 3 + 4 + 5) / 5

So read your instructions and think about what your tutor expects.

(Then read them again and think about what you have written already!)
 
Share this answer
 
You really need to talk to your tutor, since the pseudocode is incomplete. Look at the statements:
Prompt the user to enter his/her plform grade
Prompt the user to enter his/her math grade
Prompt the user to enter his/her intrcs grade
Compute the average of the three user inputs

So assuming you need to capture each value after each prompt, you need something like:
Print "Enter your plform grade"
Integer plformGrade = InputNumber
Print "Enter your maths grade"
Integer mathsGrade = InputNumber
// etc
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900