Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The language is Java, no UML diagram is needed just a working program with necessary objects (The Student class) Design a class named Student that
The language is Java, no UML diagram is needed just a working program with necessary objects
(The Student class) Design a class named Student that contains: . A private String data field named Name for the student (default "No Name") . A private double data field named Testl for the student (default 0.0) . A private double data field named Test2 for the student (default 0.0) .A private double data field named Test3 for the student (default 0.0) . A no-arg constructor that creates a default student. .A constructor that creates an student with the specified Name, Testl, Test2, and test3 . The accessor and mutator methods for Name, Testl, Test2, and test3. . A method named get Average0 that returns the average of three tests (Testl,Test2, and Test3) Draw the UMl diagram for the class. Implement the class. Write a test program that creates a Student object. Use Scanner object to enter (name,.test I,test2,and test3). Use mutator methods to initialize student class reference variables. Use accessor methods to display name, testl, test2, test3, and averageStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started