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

  Write a program in java that reads contents of two vectors

Write a program in Java that reads contents of two vectors, and then displays the sum of these two vectors. The program should prompt the user to enter the size of the vectors first.

  Develop a graphical user interface based java program

Develop a Java program that can communicate with a real SMTP email server for sending emails. TNE 60003 - introduction to network programming, You program should provide a GUI and can successfully send the SMTP commands to the mail server

  Write methods in java

1. int countVowels (String s) That for a given string s, return number of vowels in s.

  Write prolog clauses to express therelationships

Write prolog clauses to express the following relationships, given the parent relationship: grand-parent, sibling, cousin.

  Java program which demonstrates cellular automata

Using the internet, locate a Java program (or Java applet) which demonstrates "Cellular Automata", in particular "the Game of Life".

  Write java application to show successive element of array

Write down java application named GoTooFar which declares the array of 5 integers and stored five values in array. write try block in which you loop to show each successive element of array.

  Regular expression that selects lines

Write a regular expression that selects lines containing the html BR tag. The rules for this tag are that, like all html tags, it starts with . In between are the letters b and r in that order

  Write a java program that accepts a positive long integer

Write a Java program that accepts a positive long integer between 2 to 15, and then using the number, calculate its factorial (n!). Using do-while statement, make sure it only accepts a valid number (between 2 and 15) - if an invalid number is ent..

  Requests 2 numbers from the user and then passes

Write a program in java that requests 2 numbers from the user and then passes these 2 numbers to a method findMax that displays the largest number. Make sure your method is called fron main(). Test the method by passing various data to it

  Write a method named is all vowels that returns

Write a method named isAllVowels that returns whether a String consists entirely of vowels

  Java class to accept a user-s hourly rate of pay

Write a class that accepts a user's hourly rate of pay and the number of hours worked. Display the user's gross pay, the withholding tax (15% of gross pay), and the net pay (gross pay - withholding).

  Write java program to store employee id number

Use employee data file called employees.txt should comprise at least 5 employee records. Each record stores employee ID number (six digits) last name, first name, middle inital,gender(m or f).

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