Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave
Instructions

Task 1: Change the default package

InstructionsA junior programmer at a software company has been building a space simulator game. However, the project is in trouble, and your boss has called you in to get the current phase of the project completed. The existing program (see starter code, provided) meets the general requirements, but it suffers from code duplication and inappropriate documentation. Additionally, the code lacks the flexibility needed for future expansion. Your immediate task is to update the code provided according to the following guidelines:Task 1: Change the default packageThe junior programmer used the default package, which is not considered good practice. You should refactor the code to use the package com.algonquincollege.cst8284.section#.simulation, where section#should be replaced with yourlabsection number, e.g. 301, 311, etc.Task 2: Modify the drawSpaceSimulation() methodThis method currently draws vertical bars across each of the rows, but this may not always be desirable. Modify the program start-up, as well as SpaceExplorationSimulator, so that the user is asked if they want vertical bars or not. Save the result in a boolean value, which drawSpaceSimulation() will use to determine if the bars should be drawn or not. Note that if the bars are notdrawn, there should still be a single space (“ “) where each of the bars would appear.Task 3: Modify the moveActors() methodThere is currently too much duplicate code in this method, which includes a deeply-nested decision structure. Additionally, there are ‘magic numbers’ in use within the decision structure, numerical values whose meaning would only be known to someone deeply familiar with the program. Yourmodifications should include:Replace the numerical values with named constants (i.e. use fixed static variables in place of the numerical values).Create and use appropriate private methods to remove code duplication, especially when moving the Actors.

support
Whatsapp
callback
sales
sales chat
Whatsapp
callback
sales chat
close