Okay, so I'm a 7 month experienced programmer in C++, and now is the time when I am having the most trouble. So my Professor wants us to create a program that asks the user to input a sequence of numbers and then convert those numbers into outputs of "how many positive, negative, and zero entries; what number was entered most frequently and how many times it was entered; and how many total numbers were entered; and use 9999 to stop inputting numbers." I cannot use an array to do this and I'm having trouble finding the mode without an array. Here's my algorithm so far:
Inputs:
number
Outputs:
total numbers
sum
positive
negative
zero
most number
times entered
1. INPUT number
2. REPEAT when number is not 9999
3. sum = sum + number
4. total numbers = total numbers + 1
5. IF number is greater than 0
positive = positive + 1
6. END-IF
7. IF number is less than 0
negative = negative + 1
8. END-IF
9. IF number is equal to 0
zero = zero + 1
10. END-IF
And that's it for my pseudocode, I've tried as many things as I could think of to do as such as asking the user how many variables they would like to enter and so forth. Please help me. Thank you in advance!