Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Design a class called Student. This class is used to represent a student with student id, name and total number of units completed in college.

image text in transcribed
Design a class called Student. This class is used to represent a student with student id, name and total number of units completed in college. Include standard methods (overloaded constructors, gets, sets, toString) and also include a method that determines the student's class standing based on number of units completed, a student's standing is a freshman if completed 30 units or under, a sophomore if completed 31 to 60 units, a junior if completed 61-90 units or a senior (90 units or above). Write out an UML diagram for the Student class. (See a sample in Fig 3.12 on Page 87). Then write Student.java to implement the class design. Write StudentTest.java to create a student object with id as 1234567, name as John Smith, number of units completed as 55.0. Print out the student information including the standing. Then ask user to enter the units completed in current semester, the print the updated information. Sample output: Student information: Student ID: 1234567 Student Name: John Smith Total Number of Units Completed: 55.0 Class Standing: Sophomore Enter Current Semester Units: 12.5 Updated Student information: Student Name: John Smith Total Number of Units Completed: 67.5 Class Standing: Junior

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

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

Students also viewed these Databases questions

Question

1. What is meant by Latitudes? 2. What is cartography ?

Answered: 1 week ago