Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In JAVA please, thank you! Firtree Secondary is launching a new Bring Your Own Device initiative (or BYOD) in which every student is expected to

In JAVA please, thank you!image text in transcribed

Firtree Secondary is launching a new "Bring Your Own Device" initiative (or BYOD) in which every student is expected to bring their own electronic device to school for educational purposes. The administration wants to make sure that every device is accounted for in order to do this, they are willing to create a new database in which it will be recorded that each student HAS A primary device and HAS A secondary device. Your task is to design the classes for this database. You must create the following: BE SURE TO HAVE A PROPER DRIVER/TESTER CLASS TO ENSURE THAT YOUR CLASSES WORK. Device -type:int -opSys:int +Device(type:int, opSys:int) +toString():String For Device's toString(): If type has value 1 and opSys has value 1, return "Laptop Windows" If type has value 1 and opSys has value 2, return "Laptop - MacOS" If type has value 2 and opSys has value 1, return "Tablet - Android" If type has value 2 and opSys has value 2, return "Tablet - iOS" If type has any other value besides 1 or 2, then return "No Device" Student -name:String -grade:int -email:String -primDev:Device -SecDev:Device +Student(name:String, grade:int, email:String, primDev:Device, secDev:Device) +setGrade(grade:int):void +setDevices(primDev:Device, secDev:Device):void +toString():String For Student's toString(), it should return the String value: "Name:" + this.name + " Grade: " + this.grade + " Email: " + this.email + " Primary Device: " + this.primDev + " Secondary Device: + this.secDev NOTE: Your classes and methods should be named EXACTLY as above

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

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

Students also viewed these Databases questions