Why Choose Us?
0% AI Guarantee
Human-written only.
24/7 Support
Anytime, anywhere.
Plagiarism Free
100% Original.
Expert Tutors
Masters & PhDs.
100% Confidential
Your privacy matters.
On-Time Delivery
Never miss a deadline.
write program that read a sequence of positive integer inputs and print the sum of all the input numbers greater than 50
write program that read a sequence of positive integer inputs and print the sum of all the input numbers greater than 50. Then your program will also compute the average. Assume that the user always enters a positive number (integer) as an input value or a negative integer as a sentinel value. Please use the below to test your code [ 60 points]: Please use a while loop.
Enter an int value or negative integer value (sentinel value) to end the program: 98
Enter an int value or negative integer value (sentinel value) to end the program: 78
Enter an int value or negative integer value (sentinel value) to end the program: 77
Enter an int value or negative integer value (sentinel value) to end the program: 1
Enter an int value or negative integer value (sentinel value) to end the program: 10
Enter an int value or negative integer value (sentinel value) to end the program: -1
Sum: 253
Average: 84.33
· Note: please use the format specifier for the average value.
for example, print("average: %10.2f " %(average))
Expert Solution
Need this Answer?
This solution is not in the archive yet. Hire an expert to solve it for you.





