I need help with a problem. I'm stuck at the very beginning
I need a write a program in which I will enter one Integer at a time and it will return the result counting the Sum, Count and Average
Something like this
type> 3
(sum, count, average) = (3, 1, 3.0)
type> 1
(sum, count, average) = (4, 2, 2.0)
type> 2
(sum, count, average) = (6, 3, 2.0)
It also uses the try catch and exceptions
For example,
type> 3.141592
Sorry, 3.141592 doesn't seem to be an integer...
Can somebody please help me