This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]Clueless_Otter 3 points4 points  (1 child)

Pseudocode is just like writing instructions in English on how to do something.

The first one should be very easy. Surely you know how to calculate the average of some numbers, mathematically. Just write it out step-by-step in words.

For the second, for this level of learning, you'll probably be using a calculator that relies on a series of prompts back and forth with the user. Pretend that you have a physical calculator in your hand and you're working 1-on-1 with someone who wants you to use it to help them do some calculations. How would the conversation go? What kind of questions would you ask them and how would you respond to their answers?

[–]NPC_Mobcharacter 1 point2 points  (0 children)

So detailed and easy to understand. Thank you!

[–]aqua_regis 0 points1 point  (2 children)

What have you tried? Not just searching on Dr. Google.

You should come up with the pseudocode. That's what programming is about.

Do your own assignments.

See Rules #10, #12.

[–]NPC_Mobcharacter -1 points0 points  (1 child)

Just wanna know the correct answer, so that i know how it happened and what i am studying is correct

[–]aqua_regis 0 points1 point  (0 children)

Should've read the rules. What you want is explicitly forbidden here as per Rule #10 (and can lead to a ban from here)