Demonstrate the class with a driver program

Assignment Help JAVA Programming
Reference no: EM132109224

Programming Project: Course Grades

In a course, a teacher gives the following tests and assignments:

A lab activity that is observed by the teacher and assigned a numeric score.

A pass/fail exam that has 10 questions. The minimum passing score is 70.

An essay that is assigned a numeric score.

A final exam that has 50 questions.

Write a class named CourseGrades that implements the following interface:

public interface Analyzable

{

double getAverage();

GradedActivity getHighest();

GradedActivity getLowest();

}

The class should have a GradedActivity array named grades as a field. The array should have four elements, one for each of the assignments previously described. The class should have the following methods:

setLab: This method should accept a GradedActivity object as its argument. This object should already hold the student's score for the lab activity. Element 0 of the grades field should reference this object.

setPassFailExam: This method should accept a PassFailExam object as its argument. This object should already hold the student's score for the pass/fail exam. Element 1 of the grades field should reference this object.

setEssay: This method should accept an Essay object as its argument. The Essay class extends the GradedActivity class presented in this chapter.

The Essay class should determine the grade a student receives for an essay. The student's essay score can be up to 100 and is determined in the following manner: 1) Grammar: 30 points, 2) Spelling: 20 points, 3) Correct length: 20 points, and Content: 30 points. Element 2 of the grades field should reference this object.

setFanalExam: This method should accept a FinalExam object as tis argument. This object should already hold the student's score for the final exam. Element 3 of the grades field should reference this object.

toString: This method should return a string that contains the numeric scores and grades for each element in the grades array.

Demonstrate the class with a driver program.

Reference no: EM132109224

Questions Cloud

What is the cidr notation for the network id now : Starting with the network ID 192.16.20.0/24, what is the default Class C subnet mask for this network? Write this information both in decimal and in binary.
Compute the area and circumference of the circle : Write a C++ program that inputs the radius of a circle and then computes the area and circumference of the circle using the formua.
What is the network id of this subnet : What is the network ID of this subnet? What is the CIDR notation for this subnet? What is the broadcast address?
Given a list of integers find the minimum and maximum : Write a program to answer this problem using multiple processes where the first process spawns multiple processes and they spawn their own multiple processes.
Demonstrate the class with a driver program : In a course, a teacher gives the following tests and assignments: A lab activity that is observed by the teacher and assigned a numeric score.
Write a simple pyhone program to encrypt and decrypt : Write a simple pyhone program to encrypt and decrypt a file using AES algorithm (key value: " security").
Evaluate the proposed system : Propose a suitable information system solution that meets the chosen company needs - Evaluate the proposed system and provide your recommendations
State your reasons of the configuration and the cost : In this project, you are going to build up your own computer from scratch. In general, you will have a budget of $1500. You can "buy" items from ANYWHERE.
Which program has the better guarantee on running time : Which program has the better guarantee on running time, for large values of N (N > 10, 0 Explain your answer.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Design a method in a stack implementation

Design a method in a Stack implementation that allows the user to insert a new member to the "bottom" of a stack.

  Demonstrate your knowledge in a pragmatic way

Summarize everything that we have addressed in the XML Applications course, and provide a mechanism to demonstrate your knowledge in a pragmatic way.

  What is the memory address of the first array location

What is an n-dimensional array? What does "n" refer to?

  Write a program utilizing classes and objects to gather data

Write a program utilizing classes and objects to gather information about a moment in time.

  Define a class named hotdogstand

You operate several hot dog stands distributed throughout town. Define a class named HotDogStand that has a member variable for the hot dog stand

  Prepare a dbms plan will choose for various kinds of queries

For the coding/experiment part of the homework, I want you to see the actually plan a DBMS will choose for various kinds of queries.

  Write the two methods main and display.

Implement your solution using one class. In your class, provide two methods - main and display.

  Write a gui that can be used to keep track of the score

This coursework is only 40% of your module mark. You will write a GUI that can be used to keep track of the score during a lawn tennis match at Wimbledon.

  Call a function createarray to create an array

Call a function createArray to create an array of 80 random integers in the range 1 to 750. In building the array, if the number is evenly divisible.

  Socket programming in java tcpgoal in this project we will

socket programming in java tcpgoal in this project we will develop a web server in two steps. in the end you will have

  Once getting into student information menu

Once getting into student information menu, you should be able to see a full list of students' information (first name, last name, SSN, DOB, year and major).

  Write a method named validate to help a local banker

write a method named validate to help a local banker. Your method will need to utilize two input parameters and the method's return value (for its output).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd