Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Project. Help Please! Learning Objectives 1. (60 points) Program runs successfully a. b. c. d. e. (10 points) Inputs Team name from the user

Java Project. Help Please!

image text in transcribedimage text in transcribedimage text in transcribed

Learning Objectives 1. (60 points) Program runs successfully a. b. c. d. e. (10 points) Inputs Team name from the user using a Scanner object. (10 points) Tracks win counts based on these team names (10 points) Repeats until x is entered (15 points) Outputs all of the data input, (15 points) Correctly outputs winner, including using a random number to choose between multiple winners 2. (20 points) Use the following programming tools correctly (20 points) Implement the oversized array strategy to store the team names and win counts, a. i. This means the array is created at a reasonable size (ie, 5 or 10), then increased by doubling the size each time more space is needed. A size variable is used to track the number of items stored, which may be different from the capacity (ie length) of the array. Note: Creating a massive array at the beginning of the program so that it never needs resized is NOT an oversized array strategy and is worth 0 points ii. You may not use ArrayList objects 3. (20 points) Follow the best practices we have learned in this class (10 points) Correct data types, and useful variable names. All 10 points will be taken off for using casting instead of choosing correct data types. (10 points) Format/Tab and document code using best practices learned in class. Use at least 5 helpful comments to explain your code to me a. b. Summary We will create a more complex win tracker which will track both the number of wins AND the team names. Details Your program will track each win input by the user by first getting the name of a team that has won a game. (Note: This team name will not have any spaces in it, so you can use the .next0 method instead of .nextLineO if you prefer). If this name is "x", then the program will output the winner and exit. You may assume that there will be at least one team input each time so you do not need to make a special output for 0 teams. You will have no idea how many teams are playing, so you will need to implement the Oversized Array strategy to track the number of teams entered and managed the capacity of the array. The program will check to see if the team name entered has already been used. If the team name has been entered previously, the win count will for that team will be incremented. If the team

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

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago