Click here to Skip to main content
14,662,597 members
Rate this:
Please Sign up or sign in to vote.
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 5 days ago
v2

Rate this:
Please Sign up or sign in to vote.

Solution 1

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!)
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

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
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100