Question: Complete the program in a blank box given below with appropriate statements that ask a user to enter a negative integer and ends with O.
Complete the program in a blank box given below with appropriate statements that ask a user to enter a negative integer and ends with O. Based on the entered data, calculate the percentage of negative integers greater than-10. Sample output of the completed code is as follows in Figure 2: Enter a negative integer or 0 to stop: -9 -9 is greater than -10! Enter a negative integer or 0 to stop: -8 -8 is greater than-10! Enter a negative integer or 0 to stop: -23 -23 is less than -10. Enter a negative integer or 0 to stop: -6 -6 is greater than - 10! Enter a negative integer or 0 to stop: -5 -5 is greater than-10. Enter a negative integer or 0 to stop: 0 The percentage of negative integers greater than -10 entered is 80.0% ! Figure 2: Sample of completed code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
