Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem J1: Tournament Selection Problem Deseription Each player in a tournament plays six games. There are no ties. The tournament director places the players in

image text in transcribed
image text in transcribed
Problem J1: Tournament Selection Problem Deseription Each player in a tournament plays six games. There are no ties. The tournament director places the players in groups based on the re sults of games as follows if a player wins 5 or 6 games, they are placed in Group 1 . if a player wins 3 or 4 games, they are placed in Group 2 . if a player wins 1 or 2 games, they are placed in Group 3 if a player does not win any games, they are eliminated from the tournament. Write a program to determine which group a player is placed in Input Specification The input consists of six lines, each with one of two possible letters: W (to indicate a win) or L (to indicate a loss). Output Specification The output will be either 1, 2, 3 (to indicate which Group the player should be placed in) or -1 (to indicate the player has been eliminated) Sample Input 1 Output for Sample Input 1 Sample Input 2 L. Output for Sample Input 2 use python to solve it

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

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions

Question

2. What potential barriers would you encourage Samuel to avoid?

Answered: 1 week ago