Question: [IN JAVA] Really, really need help in getting this started and figuring out how to work through it. I will end up retyping it myself

[IN JAVA] Really, really need help in getting this started and figuring out how to work through it. I will end up retyping it myself to learn, but cannot figure out where to even start. (Brand new to programming)

[IN JAVA] Really, really need help in getting this started and figuring

A company needs a program to handle tickets at the theme parks they own. Because the company owns multiple theme parks, they have an option to add on a hopper (for $20 a day) to their passes. The hopper allows people to hop from one park to another The UML for the class is qiven. Make sure tt each method is tested as you implement it The main class should have the main method. The main method should do the following- in the order stated 1. Set up a scanner for the keyboerd input 2. Have it print "Programmed by"with your name (as seen on output) 3. Create twa objects using the constructor with no formal parameters 4. Ask the user to type in the first order information as seen on output) 5. Put the information entered into the first object declared 6. Ask the user to type in the second order information (as seen on output) 7. Put the information entered into the second object declared 8. Using the objects print both orders out as shown on the output TicketOrder The constructor with no formal parameters should set string instance variables to a null string, numerical instance variables to zero, and BooleanADULT PRICE: final double 20/per day ADULTPRICE: final double 10948 I/ per day -CHILD_PRICE: final double B9.75 /per day instance variables to false. The constructor with formal parameters should variables to the volues passed in. -name:String -rumAdults: int -rumChildren: int assign the appropriate instance rograneed by Lor1 Tetzser Mutators The mutators should assign the values to the instance variables -hopper: boolean Enter nuber of adult tickets:3 TicketOrder TicketOrder(nome String. numAdults int, numChildren int, numDays:int) Hopper tickets(YN) Accessors The accessors should return the correct instance variables stname:String)-void setNumAdults(num:int) void setNumChildrn:int)rvaid setNumbays(numboysint)void tickets(Y/N): y computeHopperCost The number of people is passed in and it-setHopperhopperbocleanvoid returns the cost of the hopper for that many people for the days that the objectgetName String has. computeAdultCost Computes the cost of the odult tickets getHopper) Boolean on the order. It should call computeHopperCost rogranned by Lors Tetz getADULT PRICED:double genCHITLD_PRTCEOidouble getHOPPER PRICEO-double nuncer of days: 7 nunter of adult tickets:2 tickets(YN computeChildCost Computes the cost of the children tickets on the order. It should call computeHopperCost t(numPeopleint): doublie r nunter of days: 16 computeChildCostOidouble compute TotalCost) double Report computeTotalCost Calls the computeAdultCost and the computeChildCost and adds them together Once you have the class working - continue to the back page to write the Main class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!