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

  Implement a class quiz

Implement a class Quiz that implements the Measurable interface.

  What is the minimal total weight of cylinders

A scuba diver uses a special equipment for diving. He has a cylinder with two containers: one with oxygen and the other with nitrogen. Depending on the time he wants to stay under water and the depth of diving the scuba diver needs various amount of ..

  Java tv''s newest owner! java tv is the greatest tv channel

Java TV's newest owner! Java TV is the greatest TV channel ever, and it prides itself in its 24 hour interesting ' programming'. To help you run this channel you will need to write a  dynamic  program that uses  Data Lists  to store all its TV show i..

  Implement/update specific methods for the dfs of a graph

show the DFS order of vertices in the graph, and for each node, specify its parent node in the search (the node from which the currect node was reached). Moreover, display for each node the discovery and finishing time, to check that the Parenthesis ..

  Overriding the equals method

Use the equals method, which Player inherits from the Object class, to determine whether two players are the same. Are the results what you expect?

  The williamsburg women''s club

The Williamsburg Women's Club offers scholarships to local high school students who meet any of several criteria. Write an application that prompts the user for a student's numeric high school grade point average (for example, 3.2), the student's num..

  Function using javascript syntax to compute gross pay

Write a function using JavaScript syntax to compute a person's gross pay for a week. The function must receive the number of hours worked and the rate of pay per hour.

  Determine the type of moped

Write a driver class called MopedRental. This class should perform the following: asks the user to enter the size of the moped, the day of the week and the number of hours rented, creates the Moped object, based on the size, and displays the input..

  Critics of american often that teacher''s unions represent

Which organization has proposed a set of standards for both elementary level and secondary-level teachers? According to the latest info.,  teachers will be most needed in which of the following areas: Critics of American often argue that teacher's un..

  Write a script and verify an logi by reading a file from xl

write a script and verify an logi by reading a file from xl sheet, first time only give the password and get an error message, second time give the email only and get an error message and third time give both email and correct password and get "Signe..

  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

  Programming exercises

Programming Exercises 1. Write an application named BadSubscriptCaught in which you declare an array of 10 first names. Write a try block in which you prompt the user for an integer and display the name in the requested position.

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