logo

Solving Java Problem with Student Records

   

Added on  2019-09-16

5 Pages790 Words169 Views
 | 
 | 
 | 
1401102-3: Fourth ProblemsDue by December 26, 2016 This assignment will require you to solve only one problem in java. Goals:-To understand classes.-To be able to declare your own class with its instance variables and methods.-To be able to write a full program in Java using user defining class and test it. -Your programs are graded on both correctness and style. Please review the comments regarding programming style on the main page.:Write a grading program for instructor whose course has the following policies:-Student’s first name and last name.-Two quizzes, each graded on the base of 10 points, which weigh 25%, are given.-One mid-term exam graded on base of 50 points, which weigh 25%, is given.-Final exam graded on base of 100 points, which weigh 50%, is given.-Any grade of 90 percent or more is an A, any grade between 80 and 89 percentis a B, any grade between 70 and 79 percent is a C, any grade between 60 and 69 is a D and any grade below 60 is an F. -The program should read in the student’s first name and last name and scores and display the student’s record, which consists of two quiz scores, two exam scores (mid-term and final exam), the student’s total score for the entire course, and the final letter grade. The total score is a number in the range 0 to 100, which represents the weighted average of the student’s work. Define and use a class for the student record. The class should have:
Solving Java Problem with Student Records_1

1- instance variables for the student’s first name and last name, quizzes, midterm, final, total score for the course, and final letter grade. 2-The class should have appropriate constructor methods.3-The class should have input method and should not ask for the final numeric marks; nor should it ask for the final letter grade.4- The class should have methods to compute the overall numeric marks and the final letter grade. These last two methods will be void or returned type methods that set the appropriate instance variables. 5-The class should have a method to compare between two student’s total marks and return the student’s first name and last name with the maximum total marks.6-Your program should use all the methods described here. Your class shouldhave reasonable methods, whether your program uses them or not. You may add other methods if you wishThe sample output is as shown below:This program used for computing three Students scores and displaying thier names, marks, grade and the maximum marks between all three students in Programming Language course:Please insert the student number 1 records(first name, last name, quiz1,quiz2,mid-term,final-exam)Ahlam Alahmadi55
Solving Java Problem with Student Records_2

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
CIS120 Exam2: Grade Calculator
|1
|467
|165

Java Implementation: Tree and Heap
|1
|290
|174

Java Program to Calculate Final Marks and Display Letter Grade
|10
|1153
|103

Maths123- Quantitative Reasoning Project 2022
|3
|517
|21

Cultural Due Diligence in M&A - PDF
|11
|3571
|32

Comprehensive appraisal AND Application Assignment 2022
|24
|4745
|23