Question: Using JavaScript The class diagram with four classes Student, Graduate and Undergraduate is given. Fields and methods for cach class are given below Student Graduate

Using JavaScript Using JavaScript The class diagram with four classes Student, Graduate andUndergraduate is given. Fields and methods for cach class are given below

The class diagram with four classes Student, Graduate and Undergraduate is given. Fields and methods for cach class are given below Student Graduate Undergraduate Stadent: Fields: major (String) pa (double) caditlours (int) Methods gedipa: returns eac retums freshman, sophomore, junior or senior as determined by earned credi ours: Freshman: Less than 32 credit hours .Sophomore: At least 32 credit hours but less than 64 credit hours Junior: At least credit hours SH but less than 96 credit hours Senior: At least 96 credit hours Graduate Fields: degree (String)masters" or pbd concentration (String) years (int) (stores no. of years spent in grad school) Methods getYet returns years getConceotraticn: returns comcentration Undergraduate: Fields: honors (Boolean) Methods: islonors retums honors Write another client class Create an object of class Undergraduate called John whose major is CS, spa is 3.75, credit hours- 40 and honors-false Create an object of class Graduate called Zooey whose degree is "Masters", years-1 gpa is 4, major CS and concentration is "Bioinformatics" Print out the John's major, gpa, year and use iallorata method to see if the student is an honors student. Print out the Los concentration, years spent in grad school and major. The class diagram with four classes Student, Graduate and Undergraduate is given. Fields and methods for cach class are given below Student Graduate Undergraduate Stadent: Fields: major (String) pa (double) caditlours (int) Methods gedipa: returns eac retums freshman, sophomore, junior or senior as determined by earned credi ours: Freshman: Less than 32 credit hours .Sophomore: At least 32 credit hours but less than 64 credit hours Junior: At least credit hours SH but less than 96 credit hours Senior: At least 96 credit hours Graduate Fields: degree (String)masters" or pbd concentration (String) years (int) (stores no. of years spent in grad school) Methods getYet returns years getConceotraticn: returns comcentration Undergraduate: Fields: honors (Boolean) Methods: islonors retums honors Write another client class Create an object of class Undergraduate called John whose major is CS, spa is 3.75, credit hours- 40 and honors-false Create an object of class Graduate called Zooey whose degree is "Masters", years-1 gpa is 4, major CS and concentration is "Bioinformatics" Print out the John's major, gpa, year and use iallorata method to see if the student is an honors student. Print out the Los concentration, years spent in grad school and major

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!