12-08-2013
1,
0
Join Date: Dec 2013
Last Activity: 8 December 2013, 9:32 PM EST
Posts: 1
Thanks Given: 0
Thanked 0 Times in 0 Posts
Need a little help
thx for reading first, i got some problems with my assignment,
this is the requirements of my assignment:
The program calculates and displays the largest and average of a group of input numbers.
The program should accept the input of a group of numbers, one at a time, each can be up to 2 digits, ended with a 0, and find and display the largest and the average of all valid input numbers (excluding the ending zero). For example, input of 46, -31, 6, 10, 12345, -4, 274 and 0 should result in 46 as the largest and the average of 5, with error messages indicating that 12345 and 274 are invalid.
Any invalid input character (eg. #, a, %, A, etc.) or number exceeding the range should cause an error message and be ignored.
my question is we didnt learn anything about the data type in unix yet, but i find some similar assignment they all use "@", what is "@" means in unix and is there any other ways to deal with this problem but not use "@"
regards~