Java code | Information Systems homework help


The Alset Corporation wants to begin marketing electric vehicles (EVs) to customers in the nation of Climatonia. Because the company is brand new, models and options are very limited. The user can only select from one of three types of models, and the only available option is an extra charging cable. Your job is to write a program in Java that will allow employees to see the configurations that are currently available for purchase.

Alset EVs come in three types:
Type 1: Rear wheel drive, small battery pack (short range)
Type 2: Rear wheel drive, medium battery pack (medium range)
Type 3: All wheel drive, large battery pack (long range)

All cars feature four doors and come with a charging cable. Type 1 vehicles are painted green and have no other options. Type 2 vehicles are painted blue and have GPS navigation. Type 3 vehicles are painted red, have GPS navigation, and also have a sunroof.

After meeting with the client, the design team determined the following custom class requirements for this program:

A class called Alset with the following:

  • A property called numDoors (integer) with a value of 4
  • A property called chargeCable (integer) with a value of 1
  • A property called paintColor (String) with a value of Green
  • A property called freeCharge (String) with a value of No
  • A method called displayInfo() that prints each of these properties on screen like this example: “Number of doors: 4”

A class called Type1 with the following:

  • Inherits from Alset class
  • This model does not have any additional features

A class called Type2 with the following:

  • Inherits from Alset class
  • A String property called gpsNav with a value of Yes
  • A method that overrides displayInfo(), adding a line to report the gpsNav property

A class called Type3 with the following:

  • Inherits from Alset class
  • A String property called gpsNav with a value of Yes
  • A String property called sunroof with a value of Yes
  • A method that overrides displayInfo(), adding lines to report the gpsNav and sunroof properties

When the program runs, present the user with a simple explanation of the program (one sentence), followed by a menu that asks them to enter 1 for Type 1, 2 for Type 2, or 3 for Type 3. Use the Scanner class to process input and use IF/ELSE statements to handle their choice. Once the choice has been made, instantiate a member of the appropriate class, set the correct paint color (if type 2 or 3), then execute the displayInfo() method to display the properties of the vehicle on-screen. Once the information has been displayed, the program should end.

Write code comments in both the project class and each of the custom classes to document your program. In your custom classes, use JavaDoc comments to document the features of the class.

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
The price is based on these factors:
Academic level
Number of pages
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more