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

  Write a method named validate to help a local banker

write a method named validate to help a local banker. Your method will need to utilize two input parameters and the method's return value (for its output).

  Technical community blog

Write a blog article for a coding and technical community blog.

  Part-1prepare a program that teaches arithmetic to a young

part-1prepare a program that teaches arithmetic to a young child. the program tests subtraction and addition. in level

  Find method of the class is passed each of the targets

How many calls to the recFind method of the ArraySortedList3 class are made when the find method of the class is passed each of the targets?

  Template files contain the message text

Template files contain the message text, together with variable fields(such as Dear [Title] [Last Name ] ...). A database (stored as a text file) contains the field values for each recipient. Use HTML as the output file format. Then design and implem..

  Design and implement a small and simple email server using

design and implement a small and simple email server using the concept of web based information system. your system

  Create a package called people

Create a second package called ‘task01'. Within this package provide classes which perform the following tasks.

  Specify, design and implement a class

Specify, design and implement a class that can be used to hold information about a musical note. Test it with an appropriate driver program.

  This project is for designing and developing a college

this project is for designing and developing a college registration program. prepare a java program to register

  Implement a probability calculator for the standard normal

implement a probability calculator for the standard normal distribution using GUI.

  Write a program that displays a frame window w pixels wide

Write a program that displays a frame window W pixels wide and H pixels high. Use the Scanner to enter the values for W and H. The title of the frame is also entered by the user.

  Simple java program that implements some basic file

Your code will prompt the user to enter a file name. If this file does not exist the program will produce an error message and exit. Otherwise the program will open the file and read a line from the file, reverse the line, and then print the line to ..

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