Question: You are required to code, assemble, link and test a program that perform the following tasks: 1. Request the user to enter a single decimal

 You are required to code, assemble, link and test a program

You are required to code, assemble, link and test a program that perform the following tasks: 1. Request the user to enter a single decimal digit 2. If the data entered is not a valid decimal digit, displays an error message and go to step 1. 3. If the decimal digit is 0 , displays the average of the data entered. Otherwise add the decimal digit to the previous data and go to step 1 . An example of the output of the program is shown below. Enter a single decimal digit, 0 to terminate 1 Enter a single decimal digit, 0 to terminate 2 Enter a single decimal digit, 0 to terminate 3 Enter a single decimal digit, 0 to terminate 4 Enter a single decimal digit, 0 to terminate 5 Enter a single decimal digit, 0 to terminate 6 Enter a single decimal digit, 0 to terminate 0 The average of the series is :03.0

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!