Posted by **Themba** on Wednesday, March 28, 2012 at 8:41am.

Write a pseudocode for the following scenario.

You are to continue inputting numbers which may be either positive or negetive from a keyboard until a number of zero is entered. Count the number of positive numbers entered. This sum must be printed out at the end of the program.

- Programming -
**MathMate**, Wednesday, March 28, 2012 at 9:40am
You can proceed with something simple like this, add more details as required:

Pseudocode CountPositive

integer totalPos, number

Begin loop

input number

if number>0 then totalPos <- totalPos + 1

loop while number <> 0

print totalPos

Add what you need to satisfy all requirements.

## Answer This Question

## Related Questions

- programming - how do I write a pseudocode to find and display the largest list ...
- programming - for a list of numbers entered by the user and terminated by 0, ...
- programming - Step 1: Design a flowchart or write pseudocode for a program that ...
- program design - Create the logic for a program that continuously prompts a user...
- computer science programming - Elements – sequence-series outputting Write a ...
- Computer Programing & Logic Design - Submit pseudocode and a flowchart for the ...
- Computer Programing & Logic Design - Submit pseudocode and a flowchart for the ...
- MATH - WRITE A SIMPLE BUT A COMPLETE FORTRAN PROGRAM TO COMPUTE THE AVERAGE OF ...
- finding numbers - The sum of two positive numbers is 20. Find the numbers if the...
- statistics - 400 draws are made at random with replacement from 5 tickets that ...

More Related Questions