Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The application that will read a tab-delimited file that shows the final WNBA standings for the 2022 season. Each conference is introduced with a line

The application that will read a tab-delimited file that shows the final WNBA standings for the 2022 season. Each conference is introduced with a line that begins with "Conference:" For each conference, the subsequent lines then show the team name, number of wins, and number of losses, separated by tabs. Here is the file's contents, and here is a link to the file. Make sure you preserve the tab-delimited format of the file as you work with it.

Conference: Eastern

Chicago Sky 26 10

Connecticut Sun25 11

Washington Mystics 22 14

New York Liberty16 20

Atlanta Dream 14 22

Indiana Fever 5 31

Conference: Western

Las Vegas Aces 26 10

Seattle Storm 22 14

Dallas Wings 18 18

Phoenix Mercury15 21

Minnesota Lynx 14 22

Los Angeles Sparks 13 23

Your program will offer the user options to see the eastern conference standings, western conference standings, and overall standings. Each display of standings will show the team name, number of wins, number of losses, winning percentage, and games behind, with the teams sorted by their winning percentage.

Here is what the output must look like:

***************************************************

2022 WNBA STANDINGS

***************************************************

Enter the standings filename: wnba.txt

The teams have been read.

What would you like to see?

1. Eastern Conference

2. Western Conference

3. Combined

4. Exit

Enter the number of your choice: 1

Standings for the Eastern Conference

Team Name Wins Losses PCT GB

Chicago Sky 26 10 0.722 -

Connecticut Sun 25 11 0.694 1.0

Washington Mystics 22 14 0.611 4.0

New York Liberty 16 20 0.444 10.0

Atlanta Dream 14 22 0.389 12.0

Indiana Fever 5 31 0.139 21.0

What would you like to see?

1. Eastern Conference

2. Western Conference

3. Combined

4. Exit

Enter the number of your choice: 2

Standings for the Western Conference

Team Name Wins Losses PCT GB

Las Vegas Aces 26 10 0.722 -

Seattle Storm 22 14 0.611 4.0

Dallas Wings 18 18 0.500 8.0

Phoenix Mercury 15 21 0.417 11.0

Minnesota Lynx 14 22 0.389 12.0

Los Angeles Sparks 13 23 0.361 13.0

What would you like to see?

1. Eastern Conference

2. Western Conference

3. Combined

4. Exit

Enter the number of your choice: 3

Combined Conference Standings

Team Name Wins Losses PCT GB

Chicago Sky 26 10 0.722 0.0

Las Vegas Aces 26 10 0.722 0.0

Connecticut Sun 25 11 0.694 1.0

Washington Mystics 22 14 0.611 4.0

Seattle Storm 22 14 0.611 4.0

Dallas Wings 18 18 0.500 8.0

New York Liberty 16 20 0.444 10.0

Phoenix Mercury 15 21 0.417 11.0

Atlanta Dream 14 22 0.389 12.0

Minnesota Lynx 14 22 0.389 12.0

Los Angeles Sparks 13 23 0.361 13.0

Indiana Fever 5 31 0.139 21.0

What would you like to see?

1. Eastern Conference

2. Western Conference

3. Combined

4. Exit

Enter the number of your choice: one

That is an invalid choice.

What would you like to see?

1. Eastern Conference

2. Western Conference

3. Combined

4. Exit

Enter the number of your choice: 5

That is an invalid choice.

What would you like to see?

1. Eastern Conference

2. Western Conference

3. Combined

4. Exit

Enter the number of your choice: 4

Thank you for using this program.

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

Java An Introduction To Problem Solving And Programming

Authors: Walter Savitch

8th Edition

0134462033, 978-0134462035

More Books

Students also viewed these Programming questions

Question

=+a) Is this an observational or experimental study?

Answered: 1 week ago