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

  Implementation activities of software development

Analysis, design, and implementation activities of software development

  Design a single class that expresses the commonality

Design a single class that expresses the commonality of these concepts.

  Java project

Prompt the user for an int between lower and upper boundary.

  Create a java class called samearraysexception

Create a Java class called SameArraysException that extends the Exception class.

  Compute area and perimeter of a polygon

Create a project that would let a user compute area and perimeter of a polygon

  Technical community blog

Write a blog article for a coding/technical community blog

  Implement a card game in java

In this assignment, you will be asked to implement a card game. You will need to make several design decisions for your code. It will be expected that all classes you write will utilize the principle of encapsulation.

  Implement the lexical and syntactic analysis

Implement the lexical and syntactic analysis of Minifun programming language.

  Java threads

This is an introductory assignment on Java synchronization. You will use Java Threads while learning more about concurrency and achieving atomicity using Java’s inbuilt mechanisms.

  Implementation of memory management

Implementation of memory management

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Develop a gui based java program

Designing and developing a College Registration program

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