Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need with the following program (in java). The Prog02_aOrderedList Program The Problem While Java offers a rich suite of library classes and methods, there

I need with the following program (in java).

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

The Prog02_aOrderedList Program The Problem While Java offers a rich suite of library classes and methods, there are times when we need to create our own specialized classes so that we can control the manner in which data is maintained and accessed (for security purposes, for example) or to support domain-specific performance requirements We are going to develop a custom class for use in our private library that will support an ordered list of objects. This programming assignment is phase 1 of a multi-phase project to customize our aOrderedList class. Future phases will modify and extend the accomplishments of this phase. The Solution: Phase 1 Phase 1 functionality will be achieved in a series of steps. It is strongly suggested that you complete one step before progressing to the next step We will create a class aOrderedList that will contain a partially filled array that we will keep sorted with each insertion and deletion. Step 1: Car Class 1. Create a project in your CSC1351 workspace, named Prog02_aOrderedList. Create a class named Prog02_aOrderedList that contains your main method You will create an additional class named Car that meets the following specification Private Members: 2. private String make; private int year; private int price; Public Methods public Car (String Make, int Year, int Price) public String getMake () public int getYear public int getPrice () public int compareTo (Car other) constructor that sets the values of make, year, returns the value of make returns the value of year returns the value of price carl does not exist. Would you like to continue? does not exist. Would you like to continue? CSC 1351 Programming Project No * Section *author *@since Each method declaration should be preceded with comments in the following format: * t * * CSC 1351 Programming Project No *Section @author *@since Member variable declarations should be immediately followed by in-line comments that describe how the member is used. Except for trivial cases, method local variables should be declared at the beginning of the method. Local variable declarations should be immediately followed by in-line comments that describe how the variable is used. Code should be well commented to describe the logic and flow of the program. It is strongly recommended that algorithm pseudocode be used as the foundation for in-code comments

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

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions