question archive COSC 1437 – LAB6 TITLE Array, Array Access - Student Grading Application HOW TO DO PART 2 *From now and on yourLastName will be changed to your last name
Subject:Computer SciencePrice: Bought3
Array, Array Access - Student Grading Application
*From now and on yourLastName will be changed to your last name.
*Your program should change White to your last name.
*Your program should change McKINLEY WHITE to your name.
*Write the file name as the first comment line at the top of the program.
-start editor (for example eClipse) create the project with the following project name:
Part 2: SU2021_LAB6PART2_yourLastName
-add a driver class (that contain main()
Part 2: SU2021_StudentGradingApplication_yourLastName
*Step:4 compile and run the program.
*Step5: debug if there are any errors to complete the program.
Open a word document the provide the answers to the following questions:
Look at the following array definition
int [ ] values = { 3, 6, 2, 5, 7, 8};
What is the output of the following lines?
System.out.println(values[4]);
Class Rectangle has two data members, length (type of float) and width (type of float).
The following statement creates a Rectangle array with size 2 :
Rectangle[ ] rectangleSet = new Rectangle[2];
a. rectangleSet[1]. setLength(12.59); System.out.println(rectangleSet[1].getLength());
b. rectangleSet.setLength(4.15); System.out.println(rectngleSet.getLength()):
int [ ] Numbers = { 57, 25, 14, 63, 38, 42, 15, 80, 76, 40 }
following format. Remember to close the file.
Write the no-argument constructor, parameterized constructors of this class.
Provide an application that can help to calculate the scores and determine the grade of students
*provide the method calculates the percentage
percentage = 100 * total of scores of 3 tests in the array / total max scores of 3 tests
*provide the method to determine the letter grade
*provide the method toString() to create the output string.
File name: StudentGradingResult_White.java
STUDENT GRADING APPLICATION – McKINELY WHITE
--------------------------------------------------
*provide the method toFile() to create the output string in the following format:
studentId-lastname-firstname-percentage-letterGrade
The application creates the class SU2021_StudentGradingApplication _yourLastName.
SU2021_StudentGradingApplication_White.java
GRADING MENU – Mc KINLEY WHITE
-------------------------------------------------
Enter number 1, 2 to continue or 0 to exit:
-Create the object of class Student_yourLastname
TASK2: DISPLAY THE GRADE OF CLASS
-Open file studentInfo.txt to read
SU21_StudentGradingApplication_White.java
LIST OF CLASS GRADES – Mc KINLEY WHITE
-------------------------------------------------
-------------------------------------------------
Student Name: Charles Pescador
-------------------------------------------------------
-------------------------------------------------
-------------------------------------------------
-------------------------------------------------
You should turn in the following files: (yourLastName should be your last name)
SU2021_LAB6PART1_YourLastName.docx (part 1)
UML Pseudo-code and the output pictures of part2
SU2021_StudentGradingApplication_yourLastName.java
SU2021_StudentGradingApplication_yourLastName.class