Implementation the two classes

Assignment Help JAVA Programming
Reference no: EM138911

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: EM138911

Questions Cloud

Importance of forecasting for the global supply chain : Consider the importance of forecasting for the global supply chain of a retail food company. Identify and research a retail food company for your response eg (Mac Donlad).
Hospital doctors administered excessive oxygen : His parents claimed that hospital doctors administered excessive oxygen to the baby and that this caused the blindness.
Using the substation method or elimination method : using the substation Method or elimination Method. If you can show the work on how to solve these problem.
Nine slugs per hour : The law in Ruba says no worker shall be paid less than nine slugs per hour.
Implementation the two classes : Program Specifications: In the new implementation, the two classes, Student and Grades, are defined with the following operations/methods.
Marginal income tax rates : If the government raises your marginal income tax rates and uses the money in a way that does not affect you in any way.
Using supply and demand curve : Viennese artist Gustav Klimt's Portrait of Adele Bloch- Bauer was sold in New York for $135 million. Illustrate using supply and demand curve.
Industry environment is significantly different : Do you think the industry environment is significantly different today explain.
Central bank changes the reserve requirement ratio : What happens to each of these values if the central bank changes the reserve requirement ratio to 3%.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create a class safestack that implements a stack of strings

Create a class SafeStack that implements a stack of strings

  Technical community blog

Write a blog article for a coding/technical community blog

  Create a driver class in java

Your project is to create a driver class that uses SuperJavaIceCreamClass.

  Develop a gui based java program

Designing and developing a College Registration program

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Write a recursive instance method

Write a recursive instance method

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Rock-paper-scissors :- java problem

Design decision marks are based on how you implemented our programs/classes.

  Evaluate the rtas resource requirements

Design and implement a set of classes and interfaces and use them to evaluate the RTA's resource requirements.

  Java program to create a tree

Java program to create a tree, generate class - BottomUpTwoThreeFourTree, BottomUpTwoThreeFourTree,

  Implement the lexical and syntactic analysis

Implement the lexical and syntactic analysis of Minifun programming language.

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