Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone help write the pseudo code algorithm for this using loop termination by counter method? It is for my programming class and its Java

image text in transcribed
Can someone help write the pseudo code algorithm for this using loop termination by counter method? It is for my programming class and its Java if that helps at all.
Thanks.
ternet 4. Loop termination by countermethod average number of goals scored per team fora series of soccer match scores. Your algorithm should initially ask the user for the number of soccer match scores that are to be entered. Use a counter loop to ensure that the loop repeats that number of times. Inside the loop, your algorithm shouldask the user to enter two scores, one for each team. To read in the two scores, simply use two separate input statements in the nommal manner. The algorithmshould generate a display of prompts, inputs, and final output that looks like this: How many soccer match scores would you like to enter? 9 Enter score (using a space to separate the gosls) : 1 Enter score (using a space to separate the goals): 1 2 Enter score (using a space to sepa rate the goals): 41 Average number of goals scored per team 1.5 s zero How many soccer match scores would you like to enter? 0 Average number of goals scozed per ceam cannot be calculated

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Genomes And Databases On The Internet A Practical Guide To Functions And Applications

Authors: Paul Rangel

1st Edition

189848631X, 978-1898486312

More Books

Students also viewed these Databases questions

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago