Categories: Quick Homework

Flowcharts Valid Code and Pseudo Code Project Instructions Complete the code below, some of which is valid code and some pseudo code that needs to be fl

Flowcharts Valid Code and Pseudo Code Project Instructions

Complete the code below, some of which is valid code and some pseudo code that needs to be fleshed out and clearly commented. Submit your pseudo code and flowcharts, finished code, and a test run of the code in two documents. Cite all sources which have informed your coding. Share the process of completing this assignment.

Don't use plagiarized sources. Get Your Custom Essay on
Flowcharts Valid Code and Pseudo Code Project Instructions Complete the code below, some of which is valid code and some pseudo code that needs to be fl
Get an essay WRITTEN FOR YOU, Plagiarism free, and by an EXPERT!
Order Essay

public class TestAutomobiles
{
public static void main(String[] args)
{
Create a new Automobile(1451, “Chevrolet”, “Camaro”, “red”, 2010, 24.5);
Create another new Automobile(145188, “Ford”, “Focus”, “white”, 2019, 75);
Display auto1 information
Display auto2 information
auto1.setId(-3);
display(auto1, “bad ID”);
auto1.setId(2222);
display(auto1, “good ID”);
auto1.setMake(“Toyota”);
auto1.setModel(“Corolla”);
display(auto1, “chnage make and model”);
auto2.setId(8686);
auto2.setColor(“blue”);
auto2.setYear(2016);
display(auto2, “change ID, color, and year”);
auto2.setMpg(4);
display(auto2, “bad mpg”);
auto2.setMpg(30);
display(auto2, “good mpg”);
}
public static void display(Automobile auto, String msg)
{
Screen print a message, an ID, a make, a model , a color, a year, milage per gallon
}
}
public class Automobile
{
private int id;
private String make;
private String model;
private String color;
private int year;
private double mpg;
// Constructor
public Automobile(int id, String make, String model, String color,
int year, double mpg)
{
setId(id);
setMake(make);
setModel(model);
setColor(color);
setYear(year);
setMpg(mpg);
}
// setters
Set setId(int id)
Set setMake(String make)
Set setModel(String model)
Set setColor(String color)
Set year setYear(int yr)
Set setMpg(double mpg)
{
//Getters
Getter for getId()
Getter for getMake()
Getter for getModel()
Getter for getColor()
Getter for getYear()
Getter for getMpg()
}

Submission Details:

Create the code and sample run files.
Zip the files as SU_ITS2105_W5_A2_LastName_FirstInitial.zip.

superadmin

Recent Posts

What is the easy difination of science | Quick Solution

Science is the pursuit and application of knowledge and understanding of the natural and social…

3 years ago

definition, values, meaning of such values and type of goods with such elasticity value …….. | Quick Solution

Clearly stating the definition, the values, the meaning of such values and the type of…

3 years ago

Acct 422 – Nora D | Quick Solution

All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures…

3 years ago

Acct 322 – Nora D | Quick Solution

All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures…

3 years ago

Macro Economics Question | Quick Solution

https://www.npr.org/sections/ed/2018/04/25/605092520/high-paying-trade-jobs-sit-empty-while-high-school-grads-line-up-for-university Click on the link above. Read the entire link and answer the questions below…

3 years ago

MGT 322 – Nora D | Quick Solution

All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures…

3 years ago