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

  Accepts a binary number from the user

Write a Java test program that accepts a binary number from the user. You should store the binary number in a String. Your program should then use afor loop to sequence through every character in the String, counting the number of ones, zeros, and..

  Prepare a mobile android app

The app should target Android and be written in Java, unless you have obtained prior permission from your instructor to target a different platform

  Write java applet for costco gas station

Write a java applet for costco gas station. The applet will first ask you whether you are a costco customer, then the grade of gas you want to use: grade 87, 89, or 91.

  How would you categorize this kind of script what resources

write a 200- to 300-word short-answer response to the following bull how would you classify this type of script? bull

  Test the invoice application

Study the error message and note the line number in the statement in the InvoiceApp class that caused the crash. Then click on the link to that line of the code.

  Carl has implemented two programs

Carl picks 20 random names and finds that P1 sorts them faster than P2. "We're using P1!" exclaims Carl. Why are you hesitant to commit?

  Create a complete java application that meets these

create a complete java application that meets these requirements1. the program has an opening comments section using

  Write a program that prompts for and accepts input of test

write a program that prompts for and accepts input of test ggrades that are integers between 0 and 100. For each numerical test grade,  program should display a corresponding letter grade

  Java program to declares integer array

Write a complete Java program to declares integer array, intArray, and initialize it to {1, 2, 3, 4, 5, 6, 7}.

  Presell a limited number of cinema tickets

Write an application to presell a limited number of cinema tickets. each buyer can buy as many as 4 tickets. No more than 100 tickets can be sold. Implement a program called TicketSeller that prompts the user for the desired number of tickets and the..

  Java program by array

Write a program that reads in a file that contains one integer per line. Each integer represents one location in the image. Assume that there are 64 rows and 64 columns in the image

  Check wether two appointments overlap

in a scheduling program, we want to check wether two appointments overlap. For simplicity, appointments start at a full hour,

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