Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 407 Weeks Ago, 6 Days Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Management Posted 08 Nov 2017 My Price 8.00

substring method

Creating a Class for Dates Create a class called Date212 to represent a date. It will store the year, month and day as integers so you will need three private instance variables. One constructor should be provided that takes a String representing the date in yyyymmdd format. The constructor should use the substring method of class String to pull out the month, day and year, parse them as integers put them in the instance variables. The Date212 class should have the usual set and get methods, and equals, compareTo and toString methods. The toString method should print the date in “mm dd, yyyy” format (for example, 20171002 would be returned as “October 2, 2017”. Sorting an Array of Dates/ Displaying in a GUI Given an input file of dates represented as Strings, read the dates from the file and display them in a GUI. The dates will be in the form yyyymmdd (such as 20171001 for October 1, 2017). The GUI should have a GridLayout with one row and two columns. The left column should display the dates in the format read from the file, and the right column should display the dates as Date212 object in sorted order (using Selection Sort). The input file Each line of the input file may contain several dates separated by commas. You will need to use a StringTokenizer to separate out the individual dates. So, an example of the input file would be: 20141001 20080912,20131120,19980927 20020202 20120104 Submitting the Project. You should now have the following files to submit for this project: Project2.java Date212.java DateGUI.java Submit a jar file. Rather than upload all the files above separately, we will use Java’s facility to create the equivalent of a zip file that is known as a Java ARchive file, or “jar” file.

 


Answers

(5)
Status NEW Posted 08 Nov 2017 10:11 PM My Price 8.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on-----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be-----------

Not Rated(0)