Samantha R.

asked • 02/17/20

Help with Python Programming homework...

In volleyball, there are 5 matches in a game. My daughter’s volleyball league would like a program that will accept the number of points that each team scored in the 5 matches and print out the data along with the winner. The winning team is that one that wins the most matches. Note: It is not necessarily the team that scores the most number of points.

Here are an example of the program running.

Sample Run

This program will track the scores in a volleyball game.

Enter the score that team 1 got on match 1?

>> 25

Enter the score that team 2 got on match 1?

>> 20

Enter the score that team 1 got on match 2?

>> 25

Enter the score that team 2 got on match 2?

>> 20

Enter the score that team 1 got on match 3?

>> 15

Enter the score that team 2 got on match 3?

>> 25

Enter the score that team 1 got on match 4?

>> 10

Enter the score that team 2 got on match 4?

>> 25

Enter the score that team 1 got on match 5?

>> 25

Enter the score that team 2 got on match 5?

>> 20

Team 1 Team 2 Winner

Match 1 25 20 Team 1

Match 2 25 20 Team 1

Match 3 15 25 Team 2

Match 4 10 25 Team 2

Match 5 25 20 Team 1


Winner is Team 1.

2 Answers By Expert Tutors

By:

Neha P. answered • 02/19/20

Tutor
0 (0)

Experienced professional teaching software and math

Samantha R.

Thanks!
Report

02/22/20

Samantha R.

Thanks!
Report

02/22/20

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.