Menu

[Solved]Write Java Application Ocean Rentals Keep Track Rentals One Day End Day Print End Day Repo Q37271163

You are to write a JAVA application for Ocean Rentals that willkeep track of their rentals for one day – and at the end of theday, print the end of day report. [note: this is an extension ofAssignment #1 where you designed a few storyboards for OceanRentals, and an extension of the example flowchart and pseudocodedesigns Dr. A. provided on Ocean Rentals several weeks ago (foundin learning module ‘powerpoints and Material Presented in Class’)].The full scenario description for this assignment is found at theend of this document.

     In many organizations a team creates adesign of the solution which is given to a programmer to implement.In order to simulate that procedure, Dr. A. is providing you thedesign solution for this extended Ocean Rentals scenario(storyboards and pseudocode) found in the links below:Ocean Rentuls Stury boards ΤΕΥΤ AS INPUT Buttons as INPUT OCEAN RENTALS OCEAN RENTALS hain menu Select you choice - Rent o Bo

pseudocode-ocean Renols-Faye I TEXT VER s/on paddle done fulse Accept Choice THEN Else ENDIF tot Hobie Rent o tot So Rent:o a

Page 2 -Text verson-Occan Pental Design Do Rent please en ter How many lhwis Accept hours THEN F boat Paddie- tot Pudlk Rent

You will notice that there are two different versions of thepseudocode design, one for interactive text and one for interactivebuttons. You have the option of choosing which design you wouldlike to use to implement the solution in JAVA! You also may alterthe design if you feel you need to, however if you do this, pleaseprovide the new design in your submission.  THEPROGRAM SOLUTION SHOULD ALWAYS FOLLOW THE DESIGN OF THATSOLUTION.

Details:

  1. Read the description of the application Ocean Rentals needs forthis assignment (found below).
  2. Click on the links above to find the example Ocean Rentalsdesigns (storyboards and pseudocode) that Dr. A. provided with thisassignment. Select one of these designs to use for this assignment(your choice).
  3. Make sure you understand the design logic, make changes if youwant. Make sure you do this first — DESIGN FIRST! YourJAVA solution should match your design. Note: you also mayalter these but if you do please provide your altereddesign.
  4. Using your selected program logic design, write the JAVA sourcecode to solve this application. You have the option of solving thisas a console application (text) or an applet (button).
    1. If you choose the console method (text):
      1. Make sure you include the appropriate exception handling forthis program.
      2. you can use Swing Components if you want.
  5. Also make sure you:
    1. Include appropriate documentation in your JAVA code containingyour name, date, and program name.
    2. Use appropriate JAVA coding conventions.

6. Once you have compiled and successfully executed thisprogram, capture a print screen for each of the following and pasteeach into a Word document:

  1. The Source code from TextPad (or Eclipse)
  2. The successful execution of the program (the computerscreen).

EXTRA CREDIT: [10 points] : note: extra creditis only given to assignments handed in on time

  1. Use at least one user-defined method in your program. [5points]
  2. Draw the flowchart equivalent of your program design. [5points]

HAND IN:

  1. Resubmit your design of this program only if you changed it.(note: your code will be checked to see if it matches yourdesign).
  2. Make sure your name is on your Word Document and include thedesign you chose to use (if it is exactly like one Dr. A. provided,indicate which one in your Word document).
  3. Post ALL your files to the assignment area of canvas [filesinclude the Word document and all source code files (.java   and .html), and your extra credit design if youchose to do this]

[NOTE: IF YOU NEED HELP, PLEASE BRING YOUR DESIGN WITH YOU]

SCENARIO

Ocean Rentals is a seasonal company atthe Jersey shore who provides three different types of rentals tocustomers who walk in the door. Rentals are available at hourlyrates only. The company wants to keep track of their daily rentalactivity, rental product type availability, and totals for theday.   You want this program to be used by the front deskclerk as an interactive program. As customers walk in the door theywill be either returning one of the three types of rentals orasking to rent one of them (note: a customer is only allowed torent one rental type at a time). When a customer comes in to rent aproduct, the program must indicate if there is one available ornot, then update inventory appropriately (note: if there are norental types available that the customer asks for, then a countermust be maintained for the end of day report (the owner of thestore wants to know how many customers they could not accommodatein a day). When a customer comes in to return a product, the clerkneeds to enter the rental type and number of hours rented, and theprogram will display the amount due AND update inventoryappropriately along with totals.

At the end of the day a report is to be produced indicating howmany of each rental product type was rented for that day and if aparticular type of rental product was sold out for that day, theywant to know how many more customers requested that type of rentalproduct and were turned away (this will help in future planning ofpurchasing more rental products). In addition, the report shouldindicate Revenue for each type of rental product along with totalrevenue (revenue = the particular product rental rate * the numberof hours rented).

The Company has a fixed number of each rental product typesavailable to rent each day and hourly rental rate for each:

Paddle Board – 8 available – $10 per hour

HobieCat – 2 available – $30 per hour

Sailboat – 2 available – $50 per hour

The report would look something like this at the end of theday:

                                   Rental Activity End of Day: March 31, 2019

Rental Product      Number ofRentals    Number ofReturns    Number TurnedAway        Revenue

PaddleBoard                  xx                             xx                               xx                        $xx,xxx.xx

HobieCat                         xx                             xx                               xx                        $xx,xxx.xx

Sailboat                           xx                              xx                              xx                        $xx,xxx.xx

                                                                                                               Total Revenue =    $xxx,xxx.xx

Ocean Rentuls Stury boards ΤΕΥΤ AS INPUT Buttons as INPUT OCEAN RENTALS OCEAN RENTALS hain menu Select you choice – Rent o Boat 2- Return a Boat oa t please ener a , 2 or 3 CHonE Incorret entay, please Valida menn | ω Hun Boort a/ould you liq which Boat would you hle to RENT RETURN Boat menu – Padde Loar 2- HobeCa 3. Sail boat 2, o 3 Pleca se enter a Boat Vahdu en ter a2r Incorrect enny) ρ) euse IF Renting and NoNE in STOUK: labu RETURN COST Sor COST cecen | Please entr now many Huus– You owe s xxx.xx pseudocode-ocean Renols-Faye I TEXT VER s/on paddle done fulse Accept Choice THEN Else ENDIF tot Hobie Rent o tot So Rent:o aone trne tot Ho bre Away ENDDO tot Soil Away o tot Hobre Rev o Do PRNT man menu done ulse DO PIMT Boot type menu THEN ELSE END İF Do Print maun menu Accept boat THEN DO RENT Print y ageun ELSE DO RETURN clone true END)F END DO END pO tot Revenge tot Paddle Rev + Rern boat tot Hbe Retot Sail Rev ro Scul bout ¢t) tot Revenu “Total Revenue END Page 2 -Text verson-Occan Pental Design Do Rent please en ter How many lhwis Accept hours THEN F boat Paddie- tot Pudlk Rent t THEN Cost 1hours PRINT “Sorry nore Molobu’ Paddle ay tt ENDIF ELSE THEN FF (hobe >0 THEN THEN hoble hobie tt totitob eRent t+ ELSE cast tot hube Rev ELSE tothobe Away++ ENDIF SO 70) THEN Sail totSnlPent++ ENDIF ENDIF ELSE ENDIF EN DIF ENDIF RETURN Show transcribed image text Ocean Rentuls Stury boards ΤΕΥΤ AS INPUT Buttons as INPUT OCEAN RENTALS OCEAN RENTALS hain menu Select you choice – Rent o Boat 2- Return a Boat oa t please ener a , 2 or 3 CHonE Incorret entay, please Valida menn | ω Hun Boort a/ould you liq which Boat would you hle to RENT RETURN Boat menu – Padde Loar 2- HobeCa 3. Sail boat 2, o 3 Pleca se enter a Boat Vahdu en ter a2r Incorrect enny) ρ) euse IF Renting and NoNE in STOUK: labu RETURN COST Sor COST cecen | Please entr now many Huus– You owe s xxx.xx
pseudocode-ocean Renols-Faye I TEXT VER s/on paddle done fulse Accept Choice THEN Else ENDIF tot Hobie Rent o tot So Rent:o aone trne tot Ho bre Away ENDDO tot Soil Away o tot Hobre Rev o Do PRNT man menu done ulse DO PIMT Boot type menu THEN ELSE END İF Do Print maun menu Accept boat THEN DO RENT Print y ageun ELSE DO RETURN clone true END)F END DO END pO tot Revenge tot Paddle Rev + Rern boat tot Hbe Retot Sail Rev ro Scul bout ¢t) tot Revenu “Total Revenue END
Page 2 -Text verson-Occan Pental Design Do Rent please en ter How many lhwis Accept hours THEN F boat Paddie- tot Pudlk Rent t THEN Cost 1hours PRINT “Sorry nore Molobu’ Paddle ay tt ENDIF ELSE THEN FF (hobe >0 THEN THEN hoble hobie tt totitob eRent t+ ELSE cast tot hube Rev ELSE tothobe Away++ ENDIF SO 70) THEN Sail totSnlPent++ ENDIF ENDIF ELSE ENDIF EN DIF ENDIF RETURN

Expert Answer


Answer to You are to write a JAVA application for Ocean Rentals that will keep track of their rentals for one day – and at the e… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *