Ask your own question, for FREE!
Computer Science 22 Online
OpenStudy (anonymous):

please help me write a pseudocode for the average age of Nstudents.(N-students)

OpenStudy (jagatuba):

The thing about pseudo code is that there is not had fast rules for writing it. However, some instructors have certain expectations for it. In general, you are going to be using plain English for your pseudo code. Since your assignment is to write pseudo code, I cannot write it for you, but I can give you some tips and get you started. First, think about the problem you have and think about EVERYTHING that needs to occur. You want to break the whole process into a step-by-step procedure for the computer to follow. Remember, computers are stupid. They only do what you tell them to do and nothing else. They make no assumptions, so everything that needs to occur to make your program work has to have an instruction. Therefore, if you need to display something to the screen you have to have an instruction for that. If you need to calculate something you have to have an instruction for that. If you need to repeat any instructions, you have to have an instruction for that. So with that said, I'll start off your pseudo code for you and you can complete it. studentTotal = 0 // You can rename these variables to what ever you wish studentAge = 0 // or whatever is required. studentAverage = 0 stopCheck = 0 While stopCheck = 0 Print "Enter student age (-1 if done): " Enter studentAge If studentAge < 0 stopCheck = 1 Break loop Else // At this point you can take over and complete the steps // When you think you have it, post what you have and I'll check it for you.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!