java programming question

Upload: shankara-ramachandra

Post on 06-Apr-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/2/2019 Java Programming Question

    1/2

    Java ProgrammingDiploma Part 2 Asia Pacific Institute of Information Technology 2009

    RAIL TRANSPORTATION SYSTEMFor more than 20 years, CountryExpress has delivered services for all rail operations- transit, light rail, highspeed rail and long haul train journey in the country. Efficiency is a daily challenge that operators of railtransportations systems face. From operation management to passenger management, operators are

    entrusted with the responsibility of ensuring high levels of efficiency and safety at all times. The company hadrecently restructured its ticketing scheme and has entrusted your group to develop a system for themembodying the following modules;

    1. Registration ModuleEvery customer has the option to register onto the system. This information is used for the reward modulementioned below. Customer details such as name and identity card are required for registration. The system

    will subsequently generate a unique 6 digit code which will be used by the customer to purchase train tickets.This is a one-time registration. The customer however, need not register to purchase a train ticket, in whichcase points will not be credited to the user for purchases of the train ticket.

    2. Reward ModuleFor every RM1.00 spent, a customer shall accumulate one point which will be credited to the account of thecustomers 6 digit code.

    3. Ticketing Module

    Provides a facility to the customer to purchase ticket at the train station. There are a total of 30 stations.

    The cost of getting from one station to an immediate station is RM1.00. Using the same calculation, the ticketprice of getting from station 1 to 6 is RM5.00. In the same way, ticket price for getting from station 10 to 30should be RM20.00. The rates however differ at night (7 pm 11 pm) and early mornings (6 am 7:15 am)where a 25% discount shall apply. Children are subjected to a 50% discount regardless of the time of travel.For group purchase (more than 5 people), a 10% discount shall apply. For every 1000 points accumulated bya customer, a discount of RM5.00 shall apply.Fields required for purchasing ticket(s) 6 digit code (optional), station (departure), station (arrival), traveltime (24 hours), No of adults, No. of children.The system will subsequently generate the ticket price and the customer will enter the payment amount. Aremainder is produced should the payment amount exceed the required amount.

    Apart from generating a ticket the system will also display a customers cumulative points on each generatedticket.Develop a stand alone application using Java which will observe the defined specifications. In the interfaceuse appropriate GUI components. Make appropriate use of the Layout managers. The interface should beattractive, very user friendly, crash proof, intuitive (i.e. acts as someone would expect it to act), andreasonably realistic.

    * You can use your own judgements and assumptions should the above requirement specification isinsufficient in order to develop a realistic program. You are required to include all the assumptions that youmade in your assignment.

    SECTION B : DELIVERABLES

    This is an individual assignment. Each individual is required to submit:a. a softcopy of the program coded in Java submitted in a CD. The program should include the following:

    advanced concepts / knowledge in Java such as interfaces, packages, abstract classes, and other object-oriented concepts in addition to the basic concepts ranging from looping, control structure and arrays

    Basic Java concepts such as displaying and reading of text, variables, and assignment of values, commentsto explain various parts of the program, selection control and iteration structures, and arrays single / doublescriptedObject-oriented concepts incorporated using Java such as definition of classes, creation of objects / arrays of

    objects, constructors, method overloading, method overriding, polymorphism, etc.Advanced features of Java such as packages, interfaces, event handling, exception handling, etcAny other aspects of Javab. a documentation of the system, that incorporates basic documentation standards such as header and

    footer, page numbering and which includesCover pageTable of contentsSource code of the program in Java which adheres to the requirements in Section ASample outputs when the program is executed with some explanation of the outputs / sections of the

    programAdditional features which have been incorporated in the solution in terms of Java codesAssumptions if any

  • 8/2/2019 Java Programming Question

    2/2

    ReferencesThe documentation should be comb-bound with the CD attached.

    http://getindian.blogspot.com/2011/01/angadi-theru-2010-download-latest-tamil.html

    http://getindian.blogspot.com/2011/01/angadi-theru-2010-download-latest-tamil.htmlhttp://getindian.blogspot.com/2011/01/angadi-theru-2010-download-latest-tamil.html