Create a class called student

Assignment Help JAVA Programming
Reference no: EM13876404

Java

Create a class called Student that contains:

- A field to store the name

- A field to store their average numerical grade

- A field to store their letter grade

- A constructor that sets the information in all the fields

- Appropriate accessor methods

Write a main class that asks the user the number of students in the class (n). Then prompt for the information for all students and create a Student object for each one. Use an ArrayList to store all the Student objects created.

After all the data is entered, display a neatly formatted gradebook, with the averages rounded to 1 decimal place:

Example Output:

Name | Average | Grade

Stew Dent | 78.3 | C

Joe Schmoe | 91.1 | A

.

.

.

...up to n students

 Assume 20 for the maximum length of the name.

Reference no: EM13876404

Questions Cloud

Evaluating a project-cost and cash flows are shown in table : Monroe, Inc., is evaluating a project. The company uses a 13.8 percent discount rate for this project. Cost and cash flows are shown in the table. What is the NPV of the project?
Explain polymorphism : Explain polymorphism. Do all programming languages have polymorphism, and why or why not? Why is it useful and identify situations where polymorphic behavior would be absolutely necessary
The investment will result in additional cash flows : McKenna Sports Authority is getting ready to produce a new line of gold clubs by investing $1.85 million. The investment will result in additional cash flows of $525,000, $847,500, and $1,230,000 over the next three years. What is the payback period ..
Gallery expects to bring in additional cash flows : Cortez Art Gallery is adding to its existing buildings at a cost of $2 million. The gallery expects to bring in additional cash flows of $520,000, $700,000, and $1,000,000 over the next three years. Given a required rate of return of 10 percent, what..
Create a class called student : Java Create a class called Student that contains: - A field to store the name - A field to store their average numerical grade
Assume poisson properties apply : Leaks occur along a pipeline at the mean rate of 0.5 leaks per mile. Assume Poisson properties apply. What is the probability that a 3 mile stretch will have no leaks? (to four decimal places)
Value bond outstanding with coupon rate : Yan Yan Corp. has a $10,000 par value bond outstanding with a coupon rate of 5.2 percent paid semi annually and 28 years to maturity. The yield to maturity on this bond is 4.3 percent. What is the price of the bond?
In a method named setfavoritesports declare : In a method named setFavoriteSports declare the sports array and populate it.  This method will return the sports array to the calling statement.  The 9 in the prompt below will print 1 for the first sport, then 2 for the 2nd one and so forth.  Use t..
Dimensional array lab : Change the program (AirlineDriver.java) to assign passenger seats in an airplane. Chesapeake Airlines is a small commuter airline with seats for 20 passengers in 5 rows of 4 seats each. Here is the layout:

Reviews

Write a Review

JAVA Programming Questions & Answers

  The frantic pipe layer game1 the completed gamehere is what

the frantic pipe layer game.1 the completed gamehere is what the user interface should look like when completedyou must

  Write an object-oriented java program to manipulate data

I want a simple java solution matching all the specifications in the document. The java program has to be made using Eclipseversion 4.2.1.

  Create simple java program that determine cost of insurance

Need to create a simple Java program that determines cost of insurance by including any additional person based on age (thus questions regarding age and how many people apply to each category as far as age should be included)

  Questions1 design and implement an applet called circles

questions1. design and implement an applet called circles that draws 50 circles of random diameter in random locations.

  In this project you need to write a program called gf2java

in this project you need to write a program called gf2.java to implement the finite field gfpnwhere p is a prime number

  Concepts of polymorphism

This lab introduces students to the concepts of polymorphism, early binding, late binding, abstract classes, and virtual class functions. This will be done in the context of performing calculations on basic geometrical shapes

  What secret does soraya tell amir

What secret does soraya tell amir and how does amir react to this information

  On any given execution your program

On any given execution your program will produce just one version of the figure. However, you should refer to the class constant throughout your code, so that by simply changing your constant's value and recompiling, your program would produce a f..

  Fixing errors in a java program

You coded the following on line ten of the class MyApplet.java:

  Declare a string variable named empty

Declare a string variable named empty, and initialize it to the empty string.

  Write a java application that reads a file containing text

Write a Java application that reads a file containing text. Your program should read each line and display it on the console screen preceded by line numbers. If the input file is:

  Write a java program that will read a sequence of names

Write a java program that will read a sequence of names (first name followed by last name, separated by at least one space) from a text file and will 1) remove all duplicate names and 2) write the names (last name followed by a comma, followed by one..

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