Create a class called grades with the given fields

Assignment Help JAVA Programming
Reference no: EM131267399

ASSIGNMENT 7

A teacher has 6 students who have taken 3 tests. The teacher uses the following grading scale to assign a letter grade to a student, based on the average of his or her 3 test scores.

TestScoreRange Letter Grade

90-100 A
80-89 B
70-79 C
60-69 D
0-59 F

Create a class called Grades (java file called Grades.java) with the (exact) following fields and methods (these names and caps exactly):

Filed/Method Description
Names
LetterGrades
Test1Scores
Test2Scores
Test3Scores
EnterData
GetNames
GetName
GetTestScores
GetTestScore
GetAverageScore
GetLetterGrades
GetLetterGrade

An array if strings or ArrayList object to hold the 6 students' names
Aan array of six characters to hold the six students' letter grades
An array of doubles to hold each student's Test 1 scores
An array of doubles to hold each student's Test 2 scores
An array of doubles to hold each student's Test 3 scores

Allow the user to enter (in the console) the 6 students' name, test 1 score, test 2 score, ands test 3 scores. The code should validate the score (only between 0 and 100) and ask again for the wrong values until the correct value is entered.

Returns the student names (one student per line)
Returns a student's name, student number given as an argument
Returns a student's test scores, student number given as an argument
Returns a student's test score, student number given as an argument, targeted test given as the second argument
Returns a student's test score average (for the 3 tests), student number given as an argument
Returns a student's letter grades
Returns a student's letter grades, student number given as an argument

GetClassAverage Returns the class average: the average of the 6 students' test score average.

Reference no: EM131267399

Questions Cloud

Determine the ergodic capacity of this channel : Determine the ergodic capacity of the channel when perfect state information is available at both sides.
Algorithm for finding a placement of guards : Design an O(n)-time algorithm for finding a placement of guards that uses the minimum number of guards to protect all the paintings.
Understanding of descriptive and prescriptive arguments : Based on your understanding of descriptive and prescriptive arguments, respond to the following: Identify a topic of interest for which arguments of different perspectives can be created
Approach for an organization to control security : Take a position on the ethical concerns raised by employees who are upset about organizations monitoring their email or Internet access for security purposes. Assess whether you believe it is fair for an employee to undergo this type of surveillan..
Create a class called grades with the given fields : Create a class called Grades (java file called Grades.java) with the (exact) following fields and methods (these names and caps exactly):
Key parts of the singleton pattern : Write a Java program (non-GUI preferred) to demonstrate the Singleton pattern. The key parts of the singleton pattern are:
Identify legal and ethical constraints on pricing decisions : Identify the legal and ethical constraints on pricing decisions. - Government regulation helps monitor five major areas of pricing.
Compare and contrast the data communication technologies : Compare and contrast the data communication technologies of guided media and unguided media. This should include transmission media, data link control protocols, and multiplexing.
Write code to get the values at pricetextbox : Write code to clear the content of dealerPayLabel and bankPayLabel within the given space in ClearPayments sub procedure. Write code to get the values at priceTextBox, rebateTextBox to the variables price, rebate respectively.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a java gui application index2 java

Write a Java GUI application Index2.java based on the program in Step 1 that inputs several lines of text and uses String method indexOf to determine the total number of occurrences of each letter of the alphabet in the text

  Design a program to perform the simulation

Design a program to perform the simulation using a 40 by 20 tiled floor (N = 40, and M = 20). For each run, output:

  Write methods in java

1. int countVowels (String s) That for a given string s, return number of vowels in s.

  Create a panel with borderlayout

Create a panel with BorderLayout. Add a button labeled "OK" to the south side of the panel - given the program, show the values of the array

  Write a program creates circlearray

Write a program creates circleArray, an array composed of 10 Circle objects; it then initializes circle radius with any values (increase every time radius value by 5) and displays all circle object area's And also find total area of the circleArra..

  Implement a recursive method that evaluates the gcd

Implement a recursive method that evaluates the GCD of the given numbers - Use the above fact to create a recursive method in Java that computes and returns the gcd of two positive integers. Comment the code.

  Part-11 suppose we have a rectangle class that includes

part-11. suppose we have a rectangle class that includes length and width attributes of type int both set by the

  Create a road class

Create a Road class. The class should have functions for setting the width of the road in feet and the length of the road in miles. It should also have functions for obtaining the width of the road the length of the road.

  Statistics list program

You will also modify your program to accept input from an input file and print a report to an output file. These files are to be named by the user at runtime.

  Calculate the optimal position of the large pipeline

Your task is to calculate the optimal position (on the y-axis) of the large pipeline, so that the total length of all smaller pipelines is shortest

  Create a class in java to enable its object to be persiste

How do you create a class in Java to enable its object to be persistent? What are Java data streams and how are they used to facilitate storage and retrieval of persistent objects?

  Writing an applet with graphics in this programming

writing an applet with graphics in this programming activity you will write an applet that uses graphics. you will draw

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