Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is java question we create that classes mentioned i photo so please i need quick answer(urgent) Material(id,name,scores, release_year,price,category,type); void addScore(score:int); // add a new

image text in transcribed

image text in transcribed

this is java question we create that classes mentioned i photo so please i need quick answer(urgent)

Material(id,name,scores, release_year,price,category,type); void addScore(score:int); // add a new score to scores double getAvgScore(); //getting avarage score of this material object showDetail(); Define a class named Book and inherite it from the Material class. writer: Person numberOfPages : int Book(id, name,scores, release_year,price,category,type,writer, numberOfPages); setWriter(newWriter:Person); and the other methods which coming from Material class. CLASS6-Define a class named Movie and inherite it from the Material class.. actors: ArrayList (birden fazla Person snfndan tretilmi nesne barndrabilir) director: Person Movie(id, name,scores, release_year,price,category,type,actors, director); void addActor(actor: Person); override showDetail(); ... and the other methods which coming from Material class. CLASS7-Define a class named Netflix materials: ArrayList // (it must be able to contain multiple material objects.) credential: User; isLogin:boolean //initial value must be false and you don't need to get this value from the user. Netflix(materials); login(user:User // if credential is true you can set isLogin=true and credential=user; (For Example: userName:testUser password:123456); //user must be logged in to add anything otherwise show a warning message by using below 3 methods. You must check "LoginStatus" of user addMovie(m1:Movie); addBook(b1:Book); addMaterial(m2:Material); (Create 4 Methods. You do not need to do any login checks for the following steps for NETFLIX.) N1-Create the function that displays the information of the object with the highest average score among all materials. N2-Create the function that displays the information of the movie with the lowest average score on the screen. N3-Create a function that takes a "category id" as a parameter and displays information on the most expensive material in that category of netflix. N4-Create a function that takes a person's id as a parameter and displays the information of all movies acted by him/her on the screen. In Main Method: 1-Create multiple Person objects. You will use them when defining objects such as Movie, Book. 2-Create multiple Category objects. You will use them when defining objects such as Movie, Book. 3-Create multiple Movie objects and add some scores to them. 4-Create multiple Book objects and add some scores to them. 5-Create a User object. 6-Create a Netflix object. 7-Login for netflix object. 8-Add the objects you created in steps 3 and 4 to the Netflix object. 9-Finally, runnig the N1-N2-N3-N4 functions mentioned in the Netflix section, then ensure that their outputs are displayed separately

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

Formal SQL Tuning For Oracle Databases Practical Efficiency Efficient Practice

Authors: Leonid Nossov ,Hanno Ernst ,Victor Chupis

1st Edition

3662570564, 978-3662570562

More Books

Students also viewed these Databases questions