Question: Figures 4.8 and 4.10 demonstrated calculating a class average with counter-controlled repetition and sentinel-controlled repetition, respectively. Create a program that reads integer grades and stores
Figures 4.8 and 4.10 demonstrated calculating a class average with counter-controlled repetition and sentinel-controlled repetition, respectively. Create a program that reads integer grades and stores them in an ArrayList, then use stream processing to perform the average calculation.
Figure 4.8

Figure 4.10
![case a case b case z [false] [false] [true] [true] [true] [false] default actions(s) case a actions(s) case](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1705/4/0/2/48065a660708351e1705402479807.jpg)
System.out.printf("%d", counter); ++counter Determine whether looping should continue Display the counter value Increment the control variable [counter> 10] [counter
Step by Step Solution
3.39 Rating (155 Votes )
There are 3 Steps involved in it
The images youve provided appear to depict flowcharts for two looping mechanisms countercontrolled repetition Figure 48 and switchcase control flow wh... View full answer
Get step-by-step solutions from verified subject matter experts
