Program 2 classes one called student one called grades

Assignment Help JAVA Programming
Reference no: EM13354827

Program:
2 classes one called Student, one called Grades Functional Requirements: Ask for how many students u need to enter the program must: prompt the user to enter the name in the form last name, first name,

i.e. Doe, John switch the name to first name last name,
i.e. John Doe prompt the user for grades, (a program and exam grade are sufficient) after getting the name and grades of all the students, print out on a single line for each student the name and grades print out the class average.


Program Specifications: In the new implementation, the two classes, Student and Grades, are defined with the following operations/methods.


public class Student - Defines a student with a full name and a complete set of grades.
public void setup() - Sets all attributes of the student (name and grades).
private void setName() - Sets the name of the student.
private void setGrades() - Sets all the grades for the student.
public void display() - Displays the complete information on the student.
public double overallGrade() - Returns the overall grade of the student. public class Grades - Defines a complete set of grades received by a student.
public void setup() - Sets the complete set of grades
public void display() - Displays the complete set of grades
public double average() - Returns the average of the complete set of grades (i.e., it returns a number between 0.0 and 100.0). In either class, the setup method will initialize an object of that class. To follow our problem decomposition paradigm, the initialization of a student will consist of the initialization of his/her name and of his/her grades.


 For that purpose, we have introduced in the Student class two methods for these two basic actions, setName and setGrades. The setGrades method has very little to do directly, but defer to the Grades class's setup method. The setName method, on the other hand, will prompt and initialize the full name of a student.

Reference no: EM13354827

Questions Cloud

Write and consider the importance of forecasting for the : write and consider the importance of forecasting for the global supply chain of a retail food company. identify and
Q in 1976 the parents of a seven year old boy sued a new : q. in 1976 the parents of a seven year old boy sued a new york hospital for 3.5 million. the boy was blinded shortly
Using the substation method or elimination method if you : using the substation method or elimination method. if you can show the work on how to solve these problem.1. xy5
Q1 the law in ruba says no worker shall be paid less than : q1. the law in ruba says no worker shall be paid less than nine slugs per hour. estimate the quantity of labor supplied
Program 2 classes one called student one called grades : program 2 classes one called student one called grades functional requirements ask for how many students u need to
Q consider the following two statements1 if the government : q. consider the following two statements1 if the government raises marginal income tax rates on society and then
Q1 what is the equilibrium income the marginal propensity : q1. what is the equilibrium income the marginal propensity to import and the trade deficitsurplus if consumption is
Qa decade ago five firms supplied amateur color film in the : q.a decade ago five firms supplied amateur color film in the united states kodak fuji konica agfa and 3m. from a
Qsuppose a country the total holdings of banks were as : q.suppose a country the total holdings of banks were as followsrequired reserves 45 millionexcess reserves 15

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create a class named box that includes integer data fields

Create a class named Box that includes integer data fields for length, width and height. Create three constructors that require one, two and three arguments, respectively.

  Using a linked implementation of graph write a method

Write a method that takes two nodes as input and returns true if joining an edge between these two nodes, forms a duplicate path to one of the input nodes within the graph.

  Program to translates a number into the closest letter grade

Write a program that translates a number into the closest letter grade. For example, the number 2.8 (which might have been the average of several grades) would be converted to B-. Break ties in favor of the better grade

  A class for counting the number of people

Specification: A class for counting the number of people in a room. This might be used to control how many people are allowed into a club with a doorman.

  That uses a library database of books

Write a Java program that uses a library database of books and patron data, as described in Exercise R22.2. Patrons should be able to check out and return books

  Why is the order of the execution of two processes important

Modify the code so that the senderReceiver process sends then receives repeatedly suspending itself for 3 seconds between each iteration.

  Write an interface for a bagadt that implements iterable

Write an interface for a BagADT that implements the Iterable interface. Include javadoc comments that will generate specifications for the BagADT so that someone who wants to implement this interface will know what each method does.

  To translate infix mathematical expression

Write a program in java to translate infix mathematical expression into postfix expression and a program to evaluate the postfix expression

  The array at the index method

have an array, how do i remove an entry from the array at the index method?

  Statements to create a collection of integers

Write Java statements to create a collection of integers, and to initialize each element of the collection to -1. Then, using a for each statement to print the value of each element.

  What is overloading and what is overriding

What is overloading and what is overriding? Please use code to explain it.

  Technical community blog

Write a blog article for a coding/technical community blog

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