I think you are not very close.
I interpret the assignment like this:
Keep reading integers, if the input is less than 1 or greater than 100 it's invalid, if it's 0 stop.
Each time you read a value increase a counter specific to that value ( hint: array )
After you finished reading from input output the value of the counters
Is there anyone who can help me write this code???
I have to take this Intro to Comp Science class so I can get into this HTML class over the summer!! Any extra help would be absolutely appreciated! Thank you
1. HE WAS DOING it on strings, probably only becouse he didn't know how do this but ....
2. His code shows different problem from the one he writes about. (Counting occurrences of one chosen number, not each one from input). I am not even sure what he wants to do.
That rule is always being subverted by newcomers. I think we should put Albatross's thread into this section. With very big flashing letters. Oh, and the first time you attempt to reply to a thread it should be opened in a new tab.
Thanks for all you help guys. The code is still not working though. I know that I am asking for alot of help here but its not like I'm a Computer Science major. I am a Graphic Designer and Video Producer who just needs some help on this assignment. Thanks for all those helping and to those of you upset, I apologize but if any of you ever had a question about Graphic Design, I'd be right there to help too.
you could save 1~100 in an array
when the user input the data
just map the number of the data to the appropriate location of the array
and increment the value of the array at that location
when the user input the data
just map the number of the data to the appropriate location of the array
and increment the value of the array at that location