Question: JavaFX (Java) MVC (Model portion) Currently making an application that will project a Hogwarts (harry potter) type theme. In order to process this, I will
JavaFX (Java) MVC (Model portion) Currently making an application that will project a Hogwarts (harry potter) type theme. In order to process this, I will need the applicaiton, controller, model, and javaFXML files all while utilizing pictures. This is the model portion that I'm stuck on and the instructions are as follows.

The file provided is a comma space delimited file such as Colin Creevey,1
Ginny Weasley,1
With the files name starting with each house: Gryffindor.csv, Hufflepuff.csv, Ravenclaw.csv, Slytherin.csv
The Model The model ot this application will be Schooljava. whichwilize House.java and Studeutjava. Ifyou plan to use your code tro LabI, oy hese classes from that Eclipse project and paste the into this one. If Eclipse asks about 'coying the files versus This app will bae a single School object, which will containfour ouse objects. Following the MVC design patter one of the model classes may directly update the view - this should always be handled by a constructor. You will need to decide what oticr methods are needed in these classcs. As a gencal ule, alwaysinclude getters and settes for all class variables. School ebjects must cach have auac aud four Housc objects. House objects mut each have a ae, a color the ame ot a protesso who is the Head of thehouse, and a collection o Studeut objects. Hoises alsa have a crest logoassciated with them, exaples have beenprovided with this lab. For conveniece, he heads ot each house are curearly assigned (but should be able to change in the ftue read and save these from a tile!): . G?ytindor:Minerva McGonagall .Ravenlaw Filis Flitwiek Huttleputf: Pomoua Sprout hat ? iftnmmy Wea Fred Weasley and Hemnane ( nger year 2 are m (my find r, then they should b liste lin ar er with Chimy first, then Hemmane hen Houses shauld sort their sha ents by ve n trst, then by ast name, then first name Fred ey (year 1 enr 4 llouses should be popr ated usina the data rom the text files nen un Lab ] C these mto yon proeer to ensure t e ntre are st yow zw UPDATF For convenieace, data files have been created and providedl hec. There is onie nle er lause tice C ill his so ware. ach le 1 a csv cannna separa et valles con arm one n w per studen in hat house. The s uden For example Harry Potter2 Kntie Bell3 atie is irst Dllowed by thieir year. Student ahjects st each have a nafirst& last) ad a ye. or explflowing could be use to istantiate anew Shudent: Shudent shudent-new StHarry Potter", 2) Valid years for sludeus a 1-7 The Model The model ot this application will be Schooljava. whichwilize House.java and Studeutjava. Ifyou plan to use your code tro LabI, oy hese classes from that Eclipse project and paste the into this one. If Eclipse asks about 'coying the files versus This app will bae a single School object, which will containfour ouse objects. Following the MVC design patter one of the model classes may directly update the view - this should always be handled by a constructor. You will need to decide what oticr methods are needed in these classcs. As a gencal ule, alwaysinclude getters and settes for all class variables. School ebjects must cach have auac aud four Housc objects. House objects mut each have a ae, a color the ame ot a protesso who is the Head of thehouse, and a collection o Studeut objects. Hoises alsa have a crest logoassciated with them, exaples have beenprovided with this lab. For conveniece, he heads ot each house are curearly assigned (but should be able to change in the ftue read and save these from a tile!): . G?ytindor:Minerva McGonagall .Ravenlaw Filis Flitwiek Huttleputf: Pomoua Sprout hat ? iftnmmy Wea Fred Weasley and Hemnane ( nger year 2 are m (my find r, then they should b liste lin ar er with Chimy first, then Hemmane hen Houses shauld sort their sha ents by ve n trst, then by ast name, then first name Fred ey (year 1 enr 4 llouses should be popr ated usina the data rom the text files nen un Lab ] C these mto yon proeer to ensure t e ntre are st yow zw UPDATF For convenieace, data files have been created and providedl hec. There is onie nle er lause tice C ill his so ware. ach le 1 a csv cannna separa et valles con arm one n w per studen in hat house. The s uden For example Harry Potter2 Kntie Bell3 atie is irst Dllowed by thieir year. Student ahjects st each have a nafirst& last) ad a ye. or explflowing could be use to istantiate anew Shudent: Shudent shudent-new StHarry Potter", 2) Valid years for sludeus a 1-7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
