Redesign the grading program as an object-oriented design

Assignment Help JAVA Programming
Reference no: EM13703795

Program: We are going to redesign the grading program as an object-oriented design. We will start with a simple Student class. The student will have a name, an id (as a String) and a set of grades (as doubles).

The Student class should add:

  --a constructor (which takes a name and id as strings),

  --getters and setters for the name and id,

  --addGrade method : void

            *which takes a double,

  --printGrades method : void

                *which prints the name, a colon, and the grades separated by commas,

  --getAdjustedAverage method : double

                * computes the average, dropping the lowest score

     --getLetterGrade method : char

                         *compute the letter grade based on the adjusted average and a straight scale

   --toString() method : String

   --Prints the "<name>(<id>):<letterGrade>"

It must compile with no errors and follow the directions. Add comments in code section that will be useful in the future.

Reference no: EM13703795

Questions Cloud

Determine frequency range for which amplitude dynamic error : A pressure transducer has a damping ratio of 0.3 and a natural frequency of 12,000 Hz. Determine the frequency range for which the amplitude dynamic error will be less than 10 percent.
A particle travels along a straight line with a velocity : A particle travels along a straight line with a velocity of v=(4t-3t^2)m/s, where t is in seconds. Determine the position of the particle when t = 3.5s .s=0 when t=0. A sphere is fired downwards into a medium with an initial speed of 28m/s .If it exp..
Monopolist do to maximize profits : A pure monopolist determines that at the current level of output the marginal cost of production is $2.00, average variable costs are $2.75, and average total costs are $2.95. The marginal revenue is $2.75. What would you recommend that the monopolis..
Write a function named totamt : Write a function named totamt() that uses four parameters named quarters, dimes, nickels, and pennies, which represent the number of each of these coins in a piggybank.
Redesign the grading program as an object-oriented design : Redesign the grading program as an object-oriented design. We will start with a simple Student class. The student will have a name, an id (as a String) and a set of grades (as doubles).
What is the output of the statement : Given the subsequent array declaration, if the array is stored starting at address 2500, what is the output of the following statement?
Can firm increase variability of its product line : Can a firm increase the variability and diversity of its product line while simultaneous realizing the higher possible level of efficiency? Provide one product example for illustration.
Babylonian algorithm : Babylonian Algorithm. The Babylonian algorithm to compute the square root of a positive number n is as given:
Write a program that request a students name : Write a program that request a student's name in the subsequent form: lastName,firstName.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Design and implementation of a hangman game

Design and Implementation of a Hangman game

  Object-oriented gui drawing editor

A simple object-oriented GUI drawing editor that allows a user to create, move and erase rectangles, squares, circles and lines in an interactive graphics. How can I draw move erase rectangles, squares, circles and lines in GUI/java.

  Prepare a program that constructs a binary tree

Write your own implementation of primitive operations and use self-referential classes in your implementation.

  Explain how the loop displaying the menu

Explain how the loop displaying the menu is exited, what value does menuSel have when the program finishes? Describe what happens next when menuSel gets this value.

  Program that tests if an input string is a palindrome

Write a recursive method that takes a string as argument and returns the reverse of the string (given the argument "Horse" your method should return the string "esroH").

  Write an interface for an abstract method

Write an interface, PointingDevice, containing:  an abstract method, getXCoord that returns an int and an abstract method, getYCoord that returns an int.

  Program that allows the user to enter the last names

Write a program that allows the user to enter the last names of 5 candidates in a college election and the votes received by each candidate. The program should then output each candidates name, the votes reveived by that candidate

  Write program that uses a class named rectangle

Write program that uses a class named Rectangle. The class has floating point attributes length and width. it has member functions that calculate the perimeter and area of the rectangle. It also has set and get functions for both length and width.

  Write a program to play a game of craps

Write a program to play a game of "craps," a dice game popular in casinos. Here are the rules - Use functions appropriately. The program should allow the user to play another round.

  What vulnerabilities might these threats exploit

What special consequences do you foresee from information security breaches confined to online retail banking compared to online commercial banking?

  A method with the signature public static void

A method with the signature public static void printDetails(City[] cities) that will iterate through the cities and printthe details of the city using the displayDetails(...) method.

  Create java application-input miles driven and gallons used

Create Java application which will input miles driven and gallons used (both as integers) for each tankful. Program must compute and display miles per gallon obtained for each tankful.

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