-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.txt
53 lines (34 loc) · 1.34 KB
/
output.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
C:\CS271\Project 6 - Converter>converter.exe
String/Integer Converter
By George Hill
**EC: Numbers each line of user input and displays running subtotal.
**EC: Correctly handles signed input.
Please provide 10 decimal integers in the range [-2147483648, +2147483647].
This program will then display those integers, their sum, and their average.
#1: Please enter an integer: -3
The sum of your integers so far is: -3
#2: Please enter an integer: -2
The sum of your integers so far is: -5
#3: Please enter an integer: -1
The sum of your integers so far is: -6
#4: Please enter an integer: 0
The sum of your integers so far is: -6
#5: Please enter an integer: 1
The sum of your integers so far is: -5
#6: Please enter an integer: 2
The sum of your integers so far is: -3
#7: Please enter an integer: 3
The sum of your integers so far is: 0
#8: Please enter an integer: 4
The sum of your integers so far is: 4
#9: Please enter an integer: 5
The sum of your integers so far is: 9
#10: Please enter an integer: 6
The sum of your integers so far is: 15
You entered the following numbers:
-3, -2, -1, 0, 1, 2, 3, 4, 5, 6
The sum of those numbers is: 15
The (rounded) average of those numbers is: 1
I hope you find this helpful. Thank you. Good-bye.
Press any key to exit.
C:\CS271\Project 6 - Converter>