Learning Goal: I’m working on a java project and need a sample draft to help me

Place your order now for a similar assignment and have exceptional work written by our team of experts, At affordable rates

For This or a Similar Paper Click To Order Now

Learning Goal: I’m working on a java project and need a sample draft to help me learn.JAVA SIX (Arrays and ArrayList) – 20 Points from Gaddis Chapter 7A. S22 – Movie List (8 Points)Write a Java program that creates an ArrayList (pg 476) of 7 movies: Raiders of the Lost Ark, Star Wars, Avatar, Ghostbusters, Twilight, The Avengers, and Jaws. Setup a loop to print the list of movies. Add (pg 477) King Kong-Skull Island after Star Wars. Set (pg 478) Twilight and Jaws to your two favorite movies, then print the list again. You do not need to ask the users for the movies, but you can if you want.Example Print 1:List of Movies————–Raiders of the Lost ArkStar WarsAvatarGhostbustersTwilightThe AvengersJawsExample Print 2:Updated Movie List——————Raiders of the Lost ArkStar WarsKing Kong-Skull IslandAvatarGhostbustersHere Comes the BoomThe AvengersDaddy’s Home 2Hints/Tips:The for loop works well
Use the size of the ArrayList to know when to stop
This is only one program, no class, and you don’t need methods
It took me less than 15 minutes to complete
Rubric:Doesn’t use the ArrayList -100%
Doesn’t populate all 7 movies -5% per movie missing
Doesn’t insert King Kong after Star Wars -10%
Doesn’t replace Twilight and Jaws -10% each
Doesn’t print first list -20%
Doesn’t print updated list of 8 movies -20%
B. S22 – Baseball Scores (12 Points)Write a Java program that keeps up with the scores in a baseball games, then reports them. Ask the user for the home team name and the visiting team name. Set up two arrays that will store the number of runs for nine innings, one for the home team and one for the visiting team. Set up a loop to ask the user for the number of runs scored by each team for each of the nine innings. Write a method (in the same program) that accepts the team name and the scores array (pg 422). The method will write a line that has the team name, the inning scores, and the total score for a team. Have the main method create headings, then call the method to print scores for each team.Example:Team 1 2 3 4 5 6 7 8 9 TotalRangers 0 1 0 0 2 0 2 0 1 6Dodgers 0 0 0 1 0 0 0 1 0 2Hints/Tips:In the loop to get the runs scored for an inning, ask the use how many runs were scored for the home team (Rangers in the example). Then, ask about the visiting team (Dodgers in the example). Be sure to put the inning number in the requestExample: How many runs did the Rangers score in inning 3?
How many runs did the Dodgers score in inning 3?When you print, print the column headings in the main method, then call the print scores method twice, once for the home team and once for the visiting team. Be sure to send the team name.
In the print scores method, create an accumulator to sum the number of runs scored and add it in the loop that prints the scores. You can use print or printf to print each score as long as you don’t use the n escape sequence. After all scores have been printed (the loop is complete), then you can print the total, but make sure to use n or println so that it goes to the next line.
It took me a little less than 35 minutes to complete
Rubric:Doesn’t use arrays to store the number of runs per inning -100%
Doesn’t ask the user for the home team and visiting team per inning -20%
Doesn’t put the team name in the request for a given innings score -10%
Doesn’t show the inning in the request for a given innings score -10%
Doesn’t total the number of runs for each team -10%
Doesn’t ask for both the home and away score by inning -10%
Doesn’t use a method to print the scores -20%

 

For This or a Similar Paper Click To Order Now

Leave a Comment

Your email address will not be published. Required fields are marked *

Featured Articles

We understand your difficulties and know how to help with your writing assignments. Client orientation is the main reason to opt for our writing company.

Professional writers

Our team consists of true experts and enthusiasts. They have academic degrees, practical experience, and a passion for writing.

 

Solid experience

For 11+ years of successful work, we have established effective solutions for students. Today, Eliteacademicessays.com is one of the best writing companies due to the combination of maturity and innovations.

 

Good prices

Our assistance implies a cheap essay writing service. It is not the lowest one, still, it corresponds to the decent quality.

 

Academic writing level

We comprehend the requirements of educational and academic spheres. Our essay writing service meets their demands, including citation styles, fresh ideas, well-grounded conclusions, etc.

An individual approach

Our essay writer creates every text from scratch in accordance with the client’s preferences. We discuss all the terms and offer an optimal solution.

 

Fast feedback

Our essay writing company has a modern Live Chat. It is always online for your convenience.

 

Scroll to Top