Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In java.. plz do the UML diagram Project 6 Writing Classes (Chapter 4) Due: see calendar Three files to be submitted Student Design (A UML

In java.. plz do the UML diagram image text in transcribed
Project 6 Writing Classes (Chapter 4) Due: see calendar Three files to be submitted Student Design (A UML diagram) no credit if this is missing) Java Source code (Student java-no credit if this has syntax emors) A driver (StudentTest.java no credit if this has syntax ermors) e Write a class to model a college student. A student should have a name and two test scores. The following shows the design. Don't add additional instance variables and additional instance methods to make coding more convenient. 5 points will be deducted if this happens. The following shows the design. You nced to complete the design using Violet UML editor. Student.java Instance Variables: No additional instance variables are allowed in this class. name testOne estTwo Instance meth Constructor(s) The name of this student The test one score of this student The test two score of this student additional instance methods are allowed in this e Initializes all of the instance variables. It is used to create an instance of this class. A student should be created with a 0 for test one, and O for test wo. Getters/setters getName Returns this student's name as a string tName Changes this student's name to be a new name provided when this method is invoked. ablic void setName (String nanel Returns this student's first test score as an int value; getTestOne ublic int Changes this student's first test score to be a new scored provided when this method is invoked Returns this student's second test score as an it value. Changes this student's second test score to be a new score provided when this method is invoked tTestone ( setTestOne TestTwo setTestTwo Others calculateAverage Computes this student's average score of testone and testTwo, and retuns it as a double value. toSt and e toString equals StudentTest.java Returns a string representation of this student's name, testone, testTwo. ubiia String tosStrin Indicates of this student is equal to some other object This is a driver where all methods of Student.java must be tested. There are no CiN All methods must be used tested The following shows how to translate the above design into Java code. Create a program Student java to model a college student and test cach method in StudentTest.java

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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

Students also viewed these Databases questions