Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in java, adventures.txt is at the end of the pictures. thank you Assignment Description The agmentis en oortunity to review objects. Wheritance and polymorphis. You

in java, adventures.txt is at the end of the pictures. thank you image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Assignment Description The agmentis en oortunity to review objects. Wheritance and polymorphis. You will create the toflowing hierarchy in your rose Adventure Seorie Helicopter Your eode will perform actions on these objects and daglay normation proving you have properlysed inheritance and polymorphim the the provided file Adventures et te test your code Specifications these specifieke to get a review of gent. When writing cod. frate the closes 1. Add this time to your C51456 project 2. Create a new con called mainteniment in Eclip Fle-New- 3.Create the above hierarchy of classes in the lasameinamenimentele 4. Please place all classes in one lava file. This makes the orders and my life 5. Follow "C51450 Programming Asian Policy & Write test programmet Opers the testle Adventures.tat for readine 1.Creates a polymorphic ray to store the adventures. The late in the Indicateshow to make the way be sure to wore a regular way, NOT an array list c. For each line in the file Read the type (pline, Serkel, Helicopter, time and price of the adventure * Create specific adventure object(the type indicates the kind of object to create Place the adventure object into the polymorphic ventures may ARTE is in the file have been read and adventure objects are in the way bere though the adventures at and foreach adventure type, time price and description in table See output section et end of document for an leable Create an Adventure Company object Create adventure.com 1. Cal constructor with the specifiche set of Snorkel See the venture Company 1 Uhe the adventures in polymorphic ray that match the company's riche 2. Use the setup Company method in the Adventure Company class Prot the adventure company 1 Use the prin company Details method in Adventure Company class 7. Teste information Rus your code on the provided file Adventures.cat This file is an examplese DO NOT aume that your code should work for your in the order specified in the fie Number of adentes Zipline 65210 Snorkel 5190 Zipline 5225 Details for each der Helicopter 6470 See below for details about Welcopter 225 350 the format for these lines Snorkel 45 135 Helicopter 425599 Snorkel 4260 1 in an intervaluering the number of res in the fie drmningles contain details for each contre The format of eachines Follow Zipline 4.5 210 Classes Adventuele Description Can that representantes Suthe 7:09 Student LTE Claves Menu Close Description Class at representerte arte Supercle in the type String representing the adventure wortetett time-double representing the number of hoon the priedou representing the cost of the adventure hic Method Constructor i Alvestering type. Grable time delle price Created by the bomo coming out for me and price Setters No settended this being donesete Returning that describes the statue Zipline, Snorkel Helicopter Sube Description stache o those . Public Method The time and price wetenly two woning Ideath contructor thee of dentures, not That is the Zipline constructor, you now that the verben a Zipline venture Zitronele tihedule Each submit the desert method is the Adventure BO se string descrito) Use the following description for children Adventure Type Description line Put on Store Used Watch the world unfold from Adventure Company Cashtre company desno niche - String represestag the respect adventure company wallableAventures of everture late from the Public Method Constructor Arcopening nichel Crestes adventure company at sche Geletters public void setup Company Adventure The adventure company species in specifice venture which nevarnice when they This method 1 determinowany adventure the coming miche LTE 7:09 Student public void setup Company rere adventures The adventure company specification natace variable niche when the company This method determines Now any adres the coming niche Next, the method create and fire the armurecomany Tavaliable Adventure with the rise on the public void primary Displays these dan - Necte the company special Number of adventures de Must Des and Tips Must Do General Use an array to store the adventures on an Type.time, and price instante variables must be defined and the species restare This done because these values are common feature in each class, al instance variables must be private Provided for man sadecade for assessmenecessary Must Not De Dono dudes in the entreprise To Build medassess core the code in man, build much of the pole . You need to create at least a ochot before you can meerdere the adventures When reading tomates the methods on the same as to obtain the afterno In the .DO NOT read one entre and then we were The Scanner methods will do the sarung te vou If you need a review attester to eat and the Tierception . You may have med hot watch your class regions are important, but they come to code, which are To eliminate the need for added complete and catch Sock, tarem Option palic static void main(Stret) strasti To do so, the layout should be a flow public class asign2 public static void string ara) throception Code to create array of naturale Note this is the end of your went e des no clue paise kare class Adventure dass Zipline esteris Adventure Details for the lines Admin Output) your program is Wheriance and polymorphincorrect you to the wing when rights Adrett 7:094 LTE Do not cute etters in the Adventure superca Before the code is man, tuld as much of these You need to create at least a deletion chat before you can secadence the adventure To Heading from is When reading tomate the mattode on the Scanner cita stain the rest DO NOT radene entire ne and then pare the line to get the different The Scanner methods wil do the same for you if you need is about the Scanner methode et annetta You may have learned about try/catch block in your cus Exceptions are important, but they did Colety ta code, which is necessary this post to eliminate the need for added complexity and the use of the blocks, hanem puolte static void main(Surarel=) trasestion To: . Please place al cases into one level to do so the layout should be as fotos public class Assigt public static void mainstrellag) throws in te this is the of your assiga The classes with det class Adventure w classes de include public keyword // Details for the stredim class spltre tends Adventure Details for the case W dating leashore Output your program is using inheritance and polymorphinct you to find when running against the title Adventures. Tye Polin 4 Sre Loline 18 19.00 wiko 4. 35, Share 4.50 1195.00 Holder, Duration auss, co Use a vinering Put au contenu to the whole fra New the world for a new evig kring for to the word tole fare's Cory's Niche Seralar Avetres away Sare - 4.250,00 Sabel 35. Snorkel 7:09 LTE Back Adventures.txt 8 Zipline 4.5 210 Snorkel 4.25 190 Zipline 5 225 Helicopter 6 420 Helicopter 2.25 350 Snorkel 4.5 135 Helicopter 4.25 599 Snorkel 4 260 D Dashboard Calendar To Do Notifications Assignment Description The agmentis en oortunity to review objects. Wheritance and polymorphis. You will create the toflowing hierarchy in your rose Adventure Seorie Helicopter Your eode will perform actions on these objects and daglay normation proving you have properlysed inheritance and polymorphim the the provided file Adventures et te test your code Specifications these specifieke to get a review of gent. When writing cod. frate the closes 1. Add this time to your C51456 project 2. Create a new con called mainteniment in Eclip Fle-New- 3.Create the above hierarchy of classes in the lasameinamenimentele 4. Please place all classes in one lava file. This makes the orders and my life 5. Follow "C51450 Programming Asian Policy & Write test programmet Opers the testle Adventures.tat for readine 1.Creates a polymorphic ray to store the adventures. The late in the Indicateshow to make the way be sure to wore a regular way, NOT an array list c. For each line in the file Read the type (pline, Serkel, Helicopter, time and price of the adventure * Create specific adventure object(the type indicates the kind of object to create Place the adventure object into the polymorphic ventures may ARTE is in the file have been read and adventure objects are in the way bere though the adventures at and foreach adventure type, time price and description in table See output section et end of document for an leable Create an Adventure Company object Create adventure.com 1. Cal constructor with the specifiche set of Snorkel See the venture Company 1 Uhe the adventures in polymorphic ray that match the company's riche 2. Use the setup Company method in the Adventure Company class Prot the adventure company 1 Use the prin company Details method in Adventure Company class 7. Teste information Rus your code on the provided file Adventures.cat This file is an examplese DO NOT aume that your code should work for your in the order specified in the fie Number of adentes Zipline 65210 Snorkel 5190 Zipline 5225 Details for each der Helicopter 6470 See below for details about Welcopter 225 350 the format for these lines Snorkel 45 135 Helicopter 425599 Snorkel 4260 1 in an intervaluering the number of res in the fie drmningles contain details for each contre The format of eachines Follow Zipline 4.5 210 Classes Adventuele Description Can that representantes Suthe 7:09 Student LTE Claves Menu Close Description Class at representerte arte Supercle in the type String representing the adventure wortetett time-double representing the number of hoon the priedou representing the cost of the adventure hic Method Constructor i Alvestering type. Grable time delle price Created by the bomo coming out for me and price Setters No settended this being donesete Returning that describes the statue Zipline, Snorkel Helicopter Sube Description stache o those . Public Method The time and price wetenly two woning Ideath contructor thee of dentures, not That is the Zipline constructor, you now that the verben a Zipline venture Zitronele tihedule Each submit the desert method is the Adventure BO se string descrito) Use the following description for children Adventure Type Description line Put on Store Used Watch the world unfold from Adventure Company Cashtre company desno niche - String represestag the respect adventure company wallableAventures of everture late from the Public Method Constructor Arcopening nichel Crestes adventure company at sche Geletters public void setup Company Adventure The adventure company species in specifice venture which nevarnice when they This method 1 determinowany adventure the coming miche LTE 7:09 Student public void setup Company rere adventures The adventure company specification natace variable niche when the company This method determines Now any adres the coming niche Next, the method create and fire the armurecomany Tavaliable Adventure with the rise on the public void primary Displays these dan - Necte the company special Number of adventures de Must Des and Tips Must Do General Use an array to store the adventures on an Type.time, and price instante variables must be defined and the species restare This done because these values are common feature in each class, al instance variables must be private Provided for man sadecade for assessmenecessary Must Not De Dono dudes in the entreprise To Build medassess core the code in man, build much of the pole . You need to create at least a ochot before you can meerdere the adventures When reading tomates the methods on the same as to obtain the afterno In the .DO NOT read one entre and then we were The Scanner methods will do the sarung te vou If you need a review attester to eat and the Tierception . You may have med hot watch your class regions are important, but they come to code, which are To eliminate the need for added complete and catch Sock, tarem Option palic static void main(Stret) strasti To do so, the layout should be a flow public class asign2 public static void string ara) throception Code to create array of naturale Note this is the end of your went e des no clue paise kare class Adventure dass Zipline esteris Adventure Details for the lines Admin Output) your program is Wheriance and polymorphincorrect you to the wing when rights Adrett 7:094 LTE Do not cute etters in the Adventure superca Before the code is man, tuld as much of these You need to create at least a deletion chat before you can secadence the adventure To Heading from is When reading tomate the mattode on the Scanner cita stain the rest DO NOT radene entire ne and then pare the line to get the different The Scanner methods wil do the same for you if you need is about the Scanner methode et annetta You may have learned about try/catch block in your cus Exceptions are important, but they did Colety ta code, which is necessary this post to eliminate the need for added complexity and the use of the blocks, hanem puolte static void main(Surarel=) trasestion To: . Please place al cases into one level to do so the layout should be as fotos public class Assigt public static void mainstrellag) throws in te this is the of your assiga The classes with det class Adventure w classes de include public keyword // Details for the stredim class spltre tends Adventure Details for the case W dating leashore Output your program is using inheritance and polymorphinct you to find when running against the title Adventures. Tye Polin 4 Sre Loline 18 19.00 wiko 4. 35, Share 4.50 1195.00 Holder, Duration auss, co Use a vinering Put au contenu to the whole fra New the world for a new evig kring for to the word tole fare's Cory's Niche Seralar Avetres away Sare - 4.250,00 Sabel 35. Snorkel 7:09 LTE Back Adventures.txt 8 Zipline 4.5 210 Snorkel 4.25 190 Zipline 5 225 Helicopter 6 420 Helicopter 2.25 350 Snorkel 4.5 135 Helicopter 4.25 599 Snorkel 4 260 D Dashboard Calendar To Do Notifications

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 3 Lnai 9286

Authors: Albert Bifet ,Michael May ,Bianca Zadrozny ,Ricard Gavalda ,Dino Pedreschi ,Francesco Bonchi ,Jaime Cardoso ,Myra Spiliopoulou

1st Edition

3319234609, 978-3319234601

More Books

Students also viewed these Databases questions

Question

Define procedural justice. How does that relate to unions?

Answered: 1 week ago