Need help with your Discussion

Get a timely done, PLAGIARISM-FREE paper
from our highly-qualified writers!

glass
pen
clip
papers
heaphones

Java Checking the Fare from A Station to Another Station Program Code

Java Checking the Fare from A Station to Another Station Program Code

Java Checking the Fare from A Station to Another Station Program Code

Description

  1. USE ECLIPSE IDE(FILES NEEDED HAVE BEEN UPLOADED) PLEASE FOLLOW THE INSTRUCTION
  2. File to submit: Zip the WHOLE Eclipse project for submissionDemo video: demo_run.webm 
  3. Files needed:
    SkytrainFare.accdb
    ucanaccess_drivers.zip
    Question: Database Information (SkytrainFare.accdb):The database (SkytrainFare.accdb) contains one table called Stations. The table contains the following columns:

    • ID: AutoNumber;
    • Line: Short Text representing the Skytrain lines;
    • Name: Short Text representing the name of the station;
    • Zone: Integer representing the zone number;
    • The table contains more than 50 records. The first five records are shown below:IDLineNameZone1MillenniumVCC-Clark12MillenniumCommercial-Broadway13MillenniumRenfrew14MillenniumRupert15MillenniumGilmore2Task:You are asked to create a GUI in Java. The program can check the fare from a station to another station:
    1. The GUI contains 6 major components as shown in the picture below:


       
       

    2. Two JLists (No. 1 and No. 2) show the name and line of each station record. The records are loaded from the database everytime you run the program.
      Note: If you add the JList only, there will be no scroll bars. You need to do the following to add the scroll bars in the JList:

      1. Add JScrollPane

         
      2. Add JList in the Viewport area

         
    3. Three radio buttons (No. 3) allow users to select one single payment method at a time;
    4. Two radio buttons (No. 4) allow users to select one ticket type at a time;
    5. One Button (No. 5) allows users to check the fare as described below
    6. One Button (No. 6) allows users to clear all input.
    7. The windows runs as follows:
    8. When running the program, it loads all records from the database into the program;
    9. The user can select the “From” station in No.1, “To” station in No. 2, payment method in No.3 and ticket type in No. 4. A warning message will display if any one of these is not selected.
    10. When clicking the “Check Fare” button (No. 5), a message box will display the fare of the trip. The fare is calculated as follows:
      1. The basic fare is determined by the following table:

        (For example, travelling from VCC-Clark (Zone #1) to Commercial-Broadway (Zone #1) is a 1-Zone fare because both stations are in the same zone;raveling from Gilmore (Zone #2) to Waterfront (Zone #1) is a 2-Zone fare; Traveling from Waterfront (Zone #1) to King George (Zone #3) is a 3-Zone fare.
      2. In addition to above, there is an “YVR Airport AddFare”.
        1. An additional $5 charge is added to some trips that start at the YVR Airport, Sea Island Centre, and Templeton Canada Line stations (e.g., Templeton to Waterfront).
        2. No additional charge is added to those trips that end at the YVR Airport, Sea Island Centre, and Templeton Canada Line stations (e.g., Waterfront to Templeton).
        3. The whole ticket is free to those tips that start and end at the YVR Airport, Sea Island Centre, and Templeton Canada Line stations (e.g., YVR Airport to Templeton or Templeton to YVR Airport). 
    11. The message box must contain the following information:
      1. The ticket type selected
      2. The payment method selected
      3. The “From” and “To” stations
      4. The fare price
    12. When clicking the “Reset” button (No. 6), the two JList and two set of radio buttons will be deselected. (Hints: there is a method called “clearSelection()” for JList and ButtonGroup.)
    13. Additional Requirement:
    14. You MUST use the same type of components as described above;
    15. The GUI should be as close to the one in the sample video as possible;
    16. You MUST create Enumeration called Line. It contains the following values: MillenniumExpoCanada
    17. You MUST use the Enumeration Line to represent the skytrain line of a station throughout the program;
    18. You MUST create one class called Station to store each record in the database;
    19. Enabling/Disabling the Concession RadioButton is optional.

User generated content is uploaded by users for the purposes of learning and should be used following Studypool’s honor code & terms of service.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now

Our Service Charter


1. Professional & Expert Writers: Eminence Papers only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Eminence Papers are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Eminence Papers are known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Eminence Papers, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

We Can Write It for You! Enjoy 20% OFF on This Order. Use Code SAVE20

Stuck with your Assignment?

Enjoy 20% OFF Today
Use code SAVE20