Question: Computer Programming ELEC 230 Fall 2018-Classwork #2 Write a program that reads integer values continuously until zero or negative value is entered. Then program should

 Computer Programming ELEC 230 Fall 2018-Classwork #2 Write a program that

Computer Programming ELEC 230 Fall 2018-Classwork #2 Write a program that reads integer values continuously until zero or negative value is entered. Then program should displays information about each value as follows: v1Avg. Of Even Digits: d.dd, Largest Digit: d v2Avg. Of Even Digits: d.dd, Largest Digit: d etc. The program should use the following functions: getAvgEvenDigits(): a function that takes one value and returns the average of even digits. getMaxDigit(): a function that takes one value and retums the maximum digit of the value. The following are sample outputs: Enter a set of values (end with or-ve value): 135 422 121 322 902 0 135 > Avg of Even Digits: 0, Largest Digit: 5 22Avg of Even Digits:2.66667, Largest Digit: 4 12Avg of Even Digits: 2, Largest Digit: 2 322Avg of Even Digits:2, Largest Digit: 3 92 => Avg of Even Digits: 1, Largest Digit: 9 Enter a set of values (end with 0 or-ve value): 111 222 333 444-999 1Avg of Even Digits: , Largest Digit: 1 22Avg of Even Digits: 2, Largest Digit: 2 33Avg of Even Digits: , Largest Digit: 3 444 Avg of Even Digits: 4, Largest Digit: 4

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!