Your Perfect Assignment is Just a Click Away

We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!


PayStation Main Design Document Paper & Code

PayStation Main Design Document Paper & Code


Part 1:Coding

Now that you have the JAVA class source code to implement the PayStation application. Each class has been tested using the JUnit testing tool. Now you’ll put all the pieces together to complete a final product. In this lab assignment, you are required to develop a main program to demo to the clients how the product works.

A main() program should be developed to simulate the PayStation operation. It displays a menu to allow a customer to select a choice:

  • Deposit Coins
  • Display
  • Buy Ticket
  • Cancel
  • Empty (Admin)
  • Change Rate Strategy (Admin)

A maintenance worker may select the Admin menu options to empty the PayStation or Change Rate Strategy while the PayStation system is running. When Change Rate Strategy is chosen, a submenu will show different city names with their respective rate strategies. 

The simulation software should show the following features:

  • accept coins for payment.
    • 5, 10, 25 cents
  • show time bought on display.
  • when a parking ticket is bought, prints a receipt with parking time.
  • when a transaction is canceled, prints the returned coins’ values and number of each coin type.
  • Implement rate strategies for five clients:
    • Linear1 rate for Alphatown (5c buys two minutes)
    • Progressive rate for Betatown (see below)
    • Alternating1 rate for Gammatown (weekdays:progressive + weekend:linear1 ).
    • Linear2 rate for Deltatown (5c buy 1 minute)
    • Alternating2 rate for Omegatown (weekdays:linear1 + weekend:free).
  • Rate strategy selections and changes can be done on the fly, i.e. at run-time. The default rate strategy is linear1 (Alphatown) rate.
  • Alternating rate is a hybrid rate depending on the day of the week. Linear1 rate applies on weekends and progressive rate applies on weekdays.
    • To get extra credit:  account for weekend rollover (if a user enters coins at 11:30pm on Sunday, the first 30 minutes use linear rate, and any further coins use progressive rate).  Don’t worry about splitting coins (quarter entered at 11:55pm can give 10 minutes according to linear rate).
    • Java’s Calendar class provides a good starting point for this requirement.
    • Calendar’s set() will be helpful for testing purposes.
    • Summary:
    • <em>/* <strong>Linear1 Rate Strategy</strong> */</em> time = (amount * 2) / 5;  <em><strong>/* Progressive Rate Strategy */</strong> /* less than an hour (60 Min) so amount <150 */</em> time = (amount * 2) / 5; <em>/* between 1st hour and 2nd hour so 350>amount >=150 */</em> time = (amount – 150) * (3 / 10) + 60; <em>/* greater than 2 hours so amount >= 350 */</em> time = (amount – 350) / 5 + 120;  <em>/* <strong>Alternating1</strong><strong> Rate Strategy</strong> */ /* On Weekdays Uses Progressive Rate  */ /* On Weekends Uses Linear1 Rate Strategy */</em>  <em>/* <strong>Linear2 Rate Strategy</strong> */</em> time = amount / 5;  <em>/* <strong>Alternating2</strong><strong> Rate Strategy</strong> */ /* On Weekdays Uses Linear1 Rate  */ /* On Weekends Free */  </em>

Part 2:PayStationMain main program and rate strategiesObjective:

What to submit?

  • The first part of the Design Document with the Architecture 
    • A complete UML Class Diagram for the full project even if the code is not written yet. You will be allowed to update the diagram for the final submission.  
    • Do not forget to represent the Main() method so we can identify in which class it is located. 

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Writers Hero 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 Writers Hero 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. Writers Hero is known for 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 Writers hero, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.