Question: c programming Quiz Question 2 (10 marks) Finist Complete the program in blank box given below with appropriate C statements that ask a user to

c programming
c programming Quiz Question 2 (10 marks) Finist Complete the program in
blank box given below with appropriate C statements that ask a user

Quiz Question 2 (10 marks) Finist Complete the program in blank box given below with appropriate C statements that ask a user to enter a negative integer and ends with 0. 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: Time Enter a positive integer or -1 to stop: 9 9 is less than 10! Enter a positive integer or -1 to stop: 8 8 is less than 10! Enter a positive integer or -1 to stop: 23 23 is not less than 10. Enter a positive integer or -1 to stop: 6 6 is less than 10! Enter a positive integer or -1 to stop: 5 5 is less than 10. Enter a positive integer or -1 to stop: -1 The percentage of positive integers less than 10 entered is 80.0%! Figure 2: Sample of completed code Figure 2: Sample of completed code Your answer should follow the format given below; int main() // Variables definitions // Prompt user to enter data with the following message and display the entered data // "Enter a positive integer or -1 to stop:" 1/ Calculate the percentage of negative integers less than 10 // Display the percentage 1 2 B A- B I TIL !!! HI Inil

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!