Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need this in Java CSC 1351 Fall 2018, Lab 4 Name this project StatisticsDemo Tproject naned StatisticsDemo that i1lustrates the use of interfaces. Create This

Need this in Java
image text in transcribed
image text in transcribed
image text in transcribed
CSC 1351 Fall 2018, Lab 4 Name this project StatisticsDemo Tproject naned StatisticsDemo that i1lustrates the use of interfaces. Create This a project will have the tollowing 1) An interface named Measurables with the following abstract methods public int getFiretInt public int getsecondInt) public int getThirdInt O public double getDouble O 2) A class named Student that implements the Measurables and comparable interfaces. The student class will have the following a) Instance variables: private String name: private int examli private int exam2 private int finalExam private double courseGradei b) A constructor with four input parameters that give the values of name examl, exam2, and finalExam. The construetor does not have an input variable for the value of courseGrade. Instead, the constructor wil calculate courseGrade as the average of examl, exam2, and finalExam c) Methods: public int getFirstInt) // returns examl public int getsecondInt O //returns exam2 public int getThirdInt) // returns finalExam public double getDouble) // returns courserade public int compareTo (objec t otherobject) // compares two Student obje // by courseGrade public string tostring) // defines a string to print a student obje // as shown in the output

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

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

Students also viewed these Databases questions

Question

2. Do you agree that unions stifle creativity? Why or why not?

Answered: 1 week ago