APlusGrades

Not Rated (0)

$15/per page/Negotiable

About APlusGrades

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing,Foreign Languages,Geography,Geology,Health & Medical,HR Management,Law,Management,Physics,Programming,Science,Statistics Hide all
Teaching Since: Jul 2017
Last Sign in: 364 Weeks Ago, 2 Days Ago
Questions Answered: 1850
Tutorials Posted: 1850

Education

  • Graduate in Biology and Nutrition, MBA Finance
    Florida State University
    Aug-2000 - Jul-2007

Experience

  • Ass. Relationship Manager
    Penn-Florida
    Mar-2009 - Feb-2016

Category > Programming Posted 19 Jul 2017 My Price 12.00

Object oriented programming exercise Start a new Java project called StudentsRecordApp Navigate down to /src and create the following interface and...

Object oriented programming exercise

Start a new Java project called StudentsRecordApp

 

Navigate down to /src and create the following interface and classes:

 

Interface CourseManager: Add a new Interface called CourseManager

Interface has two abstract methods:

public void addCourse();

public void dropCourse();

 

Class Student: add a class Student and Insert fields following

   String id;

   String name;

   int units;

   float grades[];

public methods:

  1. setters and getters for the data fields.
  2. public methodprintInfowhich prints out the data field values in a user friendly string.

 

Class RegisteredStudent: add a class RegisteredStudent which inherits from Student class and and interfaceCourseManager.  Provide implementation to the abstract methods to do the following:

//invoking methods “addCourse” will increase units by 2

   //invoking methods “dropCourse” will decrease units by 2

Make sure to add logic to do unit range validation check, i.e., units value can only be a positive integer, and maximum units cannot exceed 200.

 

Class CSMajorStudent: add a class CSMajorStudent which inherits from RegisteredStudent class and interfaceCourseManager.  

  • Add a data field Stringmajorand set it to "CS".
  • Override methodprintInfo to print out all data fields values, includingmajor
  • Provide implementation to the abstract methods to do the following:

   //invoking methods “addCourse” will increase units by 4

   //invoking methods “dropCourse” will decrease units by 4

Make sure to add logic to do unit range validation check, i.e., units value can only be a positive integer, and maximum units cannot exceed 200.

 

Main class: In your main class, implement the main method and meet the following requirements:

Public static void main(String[] args){

// create a RegisteredStudent object John

// set John’s name to “John Smith”

//set John's id to "0001"

// set John’s units to 12

// set John’s grades to {75, 95, 86, 91, 67, 100}

// print John’s information using printInfo()

// calculate the average grade for John

//in another line print out John’s name and average grade

//John adds three courses  (each time a course is added the units will be increased by 2)

//John drops one course (each time a course is dropped the units will be decreased by 2)

//in a new line print out John’s information

//--------Second object--------------

// create a CSMajorStudent object Mary

// set Mary’s name to “Mary Lee”

//set Mary's id to "0002"

// set Mary’s units to 16

 // Set Mary’s grades to {81, 93, 79, 90}

//Mary adds three courses  (each time a course is added the units will be increased by 4)

//Mary drops one course (each time a course is dropped the units will be decreased by 4)

//in a new line print out Mary’s name and her total units

 

}

Answers

Not Rated (0)
Status NEW Posted 19 Jul 2017 11:07 AM My Price 12.00

Hel-----------lo -----------Sir-----------/Ma-----------dam----------- ----------- -----------Tha-----------nk -----------you----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on----------- ch-----------at -----------I a-----------m -----------on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I

Not Rated(0)