Write a reference class called ctatrain

Assignment Help JAVA Programming
Reference no: EM13166346

writing a reference class that consist of the 2nd and 3rd instance variables below. my class should consist of an array of values in the 2nd instance variable and I am struggling with the 4th instance variable. Write a reference class called CTATrain that models information about a CTA "L" train making its run. The instance variables should contain information about the train's:

  • run number, an integer;
  • line color, a string containing one of the values "red", "green", "blue", "purple", "brown", "pink", "orange", or "yellow";
  • next station, a string containing the name of the station it will next arrive at;
  • arrival time, a string of the form "hh:mm:ss" indicating when it is expected to arrive at that station

 

 

Reference no: EM13166346

Questions Cloud

Sketch a normal.probability plot to check the normality : If it is a t test, sketch a normal.probability plot to check the normality of the population.6. State the null and alternative hypothesis.7. Decide on the significance level, alpha.
A stack data structure that uses a linked list for storing : In Python, implement a stack data structure that uses a linked list for storing its elements. In particular, you will need to implement the following three functions: 1. top(): This function returns the element that is at the top of the stack, but it..
Direction of greater formal order and abstraction : What pair of painters sought to develop beyond the impressionist style in  the direction of greater formal order and abstraction?
Prepare the journal entry to record the issuance of the bond : Prepare the journal entry to record the issuance of the bonds and the related bond issue costs incurred on January 1, 2009 and prepare a bond amortization schedule up to and including January 1, 2013, using the effective interest method.
Write a reference class called ctatrain : writing a reference class that consist of the 2nd and 3rd instance variables below. my class should consist of an array of values in the 2nd instance variable
Impressionist style of brilliant color and vibrant brushwor : What pair of painters best defines the pure impressionist style of brilliant  color and vibrant brushwork?
What is the empirical formula of the unknown compound : An unknown compound contains only C, H, and O. Combustion of 5.50 g of this compound prodced 11.0 g of CO2 and 4.50 g of H2O. What is the empirical formula of the unknown compound.
State what is the volume and uncertainty : The cube has an edge length of 0.26 ± 0.03 m. The volume of a cone is 1/3(pie)r^2h . What is the volume and uncertainty of the added water?
Compute the standard cost of one unit of product : Compute the budgeted amounts for 2012 for direct materials to be used, direct labor, and applied overhead and compute the standard cost of one unit of product.

Reviews

Write a Review

 

JAVA Programming Questions & Answers

  Create a circle class

create acircle class, which has one field, the radius. the class should contains two constructors: a no-argument constructor that set the radius to zero, and a constructor that takes a parameter to set the radius.

  Class named stock to model a stock

Write a class named Stock to model a stock. The properties and methods of the class are shown in Figure 6.22. The metho changePercent computes the percentage of the change in the current vs. the previous closing price.

  Display student details and classes in applet

Display student details and classes they have enrolled in Applet. The Applet should have following features. Update and View.

  Java program that reads an input

Create a java program that reads an input of n lines with the first line being the number of people in the contest and the remaining lines a numeric 9 digit code for each person that gets a vote

  Java application to display multiple choice questions

Write down the application which displays series of TEN(10) multiple choice questions: questions must cover all the Java. Each question must have four possible answers and only one answer must be correct.

  Write a program to register students for a college

Students have names, addresses and courses. Implement the interface class RegisterStudent. RegisterStudent has one method, public boolean register, which returns the boolean value of true or false if the student is successfully registered for the ..

  How to count number of objects (instances) created

How to count number of objects (instances) Created, use java code and please be descriptive

  Given an array with 100,000 entries to sort

Sorting  given an array with 100,000 entries to sort. Under what circumstances would you use each of the following: insertion sort,mergesort'quicksort

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write the method in java

2.char mostOftenIn(String s) that for a given string s, returns the character that occurs most often in s.

  Describe principles of data abstraction and inheritance

Study the principles of data abstraction, inheritance and dynamic binding. Use Library to get started on finding resources.You must take the terms and describe it.

  Describe the steps to program development

What is the function of parseFloat and parseInt and what will be result if we send "abcd" through a prompt() input and pass it through parseInt()?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd