COSC Project COSC 1437 – PROJECT TITLE File access – Array Access – User-defined function – Student Grading HOW TO DO PROJECT *From now and on yourL

COSC Project COSC 1437 – PROJECT

TITLE
File access – Array Access – User-defined function – Student Grading
HOW TO DO PROJECT
*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 JAMES SMITH to your name.

*Change Mary Lane to the name of user who is using the Investment Application entered from the keyboard.

*Write the file name as the first comment line at the top of the program.

*After running your program, get the picture of the output window from your program with your name on to paste at the bottom of the pseudo-code to turn in.

*Step1: Read the requirement of each part; create the UML of data type class, write the pseudo-code of driver class in a word document by listing the step by step what you suppose to do in main() and then save it with the name as Project_pseudoCode_yourLastName.

*Step2:

-start editor (for example eclipser) create the project with the following project name:

FA2021_PROJECT_yourLastName
-add data type class:
FA2021_Student_yourLastName

-add a driver class (that contain main()

FA2021_CSGradingStudentsApplication_yourLastName

*Step3: follow step by step in the pseudo-code (or the flowchart) to write the java code in main() or driver class.
*Step:4 compile and run the program.

*Step5: debug if there are any errors to complete the program.

PROJECT requirement
Use Java to provide the application that helps to calculate the numeric grade and determine the letter grade of students based on the scores of 8 assignment types: policy quiz, quizzes, homework, labs, project, discussion topic, teamwork, and tests where policy quiz is an extra credit.

The course name, student id, last name, first name and all the scores of 8 assignment types of one student are provided from the keyboard.

The application provides 3 tasks
FA2021_CSGradingStudentsApplication_Smith.java
TASK OF GRADING – JAMES SMITH
——————————————————————–
1.Grading One Student
2.Printing The Grade of One Student
3.Printing The Grades of Class
0.Exit

TASK1: GRADING ONE STUDENT
-Read information and scores from the keyboard. After calculating the numeric grade, determine the letter grade then display on the screen the grade of the student in the following format:

FA2021_CSGradingStudentApplication_Smith.java
FINAL GRADE OF STUDENT – JAMES SMITH
———————————————–
COURSE NAME: COSC1436
STUDENT: 1234567
NAME: Mary Lane
STUDENT: 1234567
———————————————–
Total STUDENT Score: 672.00
Total MAX core: 805.00
Numeric Grade: 83.48
Letter Grade: B
———————————————–

-WRITE TO FILE studentGrade.txt: Store the grade of the student to the output file named as studentGrades.txt in one line with the following format:
courseName, studentID, lastname, firstname, numeric grade, letter grade, 1 policy score, 14 quizzes scores, 10 homework scores, 7 lab scores, 1 project score, 1 teamwork score, 1 topic score, 3 test scores
For example:
COSC1436,1234567,Lane,Mary,83.48,B,5.0 ,4.5 3.25 2.75 5.05.0 4.25 5.0 2.25 4.5 5.0 2.5 3.5 4.0 4.5 ,7.5 8.0 9.5 10.010.0 7.5 9.25 9.0 8.75 10.0 ,27.0 25.5 22.5 28.022.25 25.5 30.0 ,65.0 ,20.0 ,20.0 ,75.0 82.5 78.25

TASK2: DISPLAYING THE GRADE OF ONE STUDENT FROM FILE
-Ask the ID that users want to read the grade that is entered from the keyboard
-Read from the input file studentGrades.txt;
-for each line, split information to get student id then Compare student id to ID read from the keyboard above
If it matches, split the information on that line into courseName, studentId, last name, first name, numeric grade, letter grade, policy score, 14 quizzes scores, 10 homework scores, 7 lab scores, project score, teamwork score, topic score, 3 test scores
-create the object of class FA2021_Student_yourLastName to pass all these information to the object
-use the object to access the method in class FA2021_Student_yourLastName to print the grade of student with ID in the following format:

FA2021_CSGradingStudentApplication_Smith.java
FINAL GRADE OF STUDENT – JAMES SMITH
————————————————————————————-
COURSE NAME: COSC1436
STUDENT: 1234567
NAME: Mary Lane
————————————————————————————-
POLICY QUIZ 5.00
QUIZZES 4.50 3.25 2.75 5.00 5.00 4.25 5.00 2.25 4.50 5.00 2.50 3.50 4.00 4.50
HOMEWORK 7.50 8.00 9.50 10.00 10.00 7.50 9.25 9.00 8.75 10.00
LABS 27.00 25.50 22.50 28.00 22.25 25.50 30.00
PROJECT 65.00
TEAMWORK 20.00
DISCUSSION TOPIC 20.00
TESTS 75.00 82.50 78.25
————————————————————————————-
Total STUDENT Score: 672.00
Total MAX core: 805.00
Numeric Grade: 83.48
Letter Grade: B
————————————————————————————-

TASK3: DISPLAYING THE GRADES OF ONE CLASS
-Read the grades stored in the file studentGrades.txt at TASK1
-For each line, split information to courseName, studentId, last name, first name, numeric grade, letter grade, policy score, 14 quizzes scores, 10 homework scores, 7 lab scores, project score, teamwork score, topic score, 3 test scores
-create the object of class FA2021_Student_yourLastName to pass all these information to the object
-use the object to access the method to print class grades in the following format:

FA2021_CSGradingStudentApplication_Smith.java
LIST OF STUDENTS’ GRADES – JAMES SMITH
———————————————
STUDENT: 1111111
NAME: Isra Ahmed
Numeric Grade: 78.76
Letter Grade: C
———————————————
STUDENT: 2222222
NAME: Jawad Ahmed
Numeric Grade: 79.57
Letter Grade: C
———————————————
STUDENT: 3333333
NAME: Adje Akoi
Numeric Grade: 79.74
Letter Grade: C
———————————————

TO DO THIS LAB, WE NEED TWO CLASSES:
-DATA TYPE CLASS: FA2021_Student_yourLastName
-DRIVER CLASS: FA2021_CSGradingStudentsApplication_yourLastName

DATA TYPE CLASS
Class FA2021_Student_yourLastname
-The class should hold the information relating to this project: course name, student id, last name, first name,
And 3 arrays of size 8:
· Float Array to hold the max score of each assignment type
· Float Array to hold the total of scores of each assignment type
· String Array to hold the 8 strings of 8 lists of assignment scores

All 3 these arrays have size 8.
Index 0: store information of policy quiz
Index 1: store information of quizzes
Index 2: store information of homework
Index 3: store information of labs
Index 4: store information of project
Index 5: store information of teamwork
Index 6: store information of topics
Index 7: store information of tests

For example: if one student has the following list of scores:
POLICY QUIZ 5.00
QUIZZES 4.50 3.25 2.75 5.00 5.00 4.25 5.00 2.25 4.50 5.00 2.50 3.50 4.00 4.50
HOMEWORK 7.50 8.00 9.50 10.00 10.00 7.50 9.25 9.00 8.75 10.00
LABS 27.00 25.50 22.50 28.00 22.25 25.50 30.00
PROJECT 65.00
TEAMWORK 20.00
DISCUSSION TOPIC 20.00
TESTS 75.00 82.50 78.25

Then the array of max score: { 5, 70, 100, 210, 80, 20, 20, 300] where max score of tests is 100 x 3, max score of labs
The array of student scores: { 5, 50.5, 89.5, 180.75, 65.0, 20.0, 20.0, 236.75}
The String array:
{ 5.00, 4.50 3.25 2.75 5.00 5.00 4.25 5.00 2.25 4.50 5.00 2.50 3.50 4.00 4.50, 7.50 8.00 9.50 10.00 10.00 7.50 9.25 9.00 8.75 10.00, 27.00 25.50 22.50 28.00 22.25 25.50 30.00, 65.00, 20.00, 20.00, 75.00 82.50 78.25 }

Also, the data type class will include:
-no-argument constructor, parameterized constructor
-methods to calculate:
total max score = sum of all values in 8 elements in 8 elements of the max score array
total student scores = sum of all values in 8 elements of the student scores array
calculate numeric grade = 100* total student scores/total max score
method to determine letter grade,

Letter Grade

Numeric grade

A

90 – 100

B

80-89

C

70-79

D

60-69

F

0-59

-method toString() to create the output string:

COURSE NAME: COSC1436
STUDENT: 1234567
NAME: Mary Lane

-method to create the output string for the grade:

Total STUDENT Score: 672.00
Total MAX core: 805.00
Numeric Grade: 83.48
Letter Grade: B

-method to create the string output of the grade with scores details for TASK2

FA2021_CSGradingStudentApplication_Smith.java
FINAL GRADE OF STUDENT – JAMES SMITH
————————————————————————————–
COURSE NAME: COSC1436
STUDENT: 1234567
NAME: Mary Lane
————————————————————————————–
POLICY QUIZ 5.00
QUIZZES 4.50 3.25 2.75 5.00 5.00 4.25 5.00 2.25 4.50 5.00 2.50 3.50 4.00 4.50
HOMEWORK 7.50 8.00 9.50 10.00 10.00 7.50 9.25 9.00 8.75 10.00
LABS 27.00 25.50 22.50 28.00 22.25 25.50 30.00
PROJECT 65.00
TEAMWORK 20.00
DISCUSSION TOPIC 20.00
TESTS 75.00 82.50 78.25
————————————————————————————–
Total STUDENT Score: 672.00
Total MAX core: 805.00
Numeric Grade: 83.48
Letter Grade: B
————————————————————————————–

-The method to create the output string for class grade report, for each student:

STUDENT: 1111111
NAME: Isra Ahmed
Numeric Grade: 84.92
Letter Grade: B
—————————————————

DRIVER CLASS
Class FA2021_CSGradingStudentsApplication_yourLastName
-First create the following arrays size 8:

*Constant string aarray:

ASSIGNMENT_NAMES to store name of 8 assignment types
{ “POLICY QUIZ”, “QUIZZES”, “HOMEWORK”, “LABS”, “PROJECT”, “TEAMWORK”, “DISCUSSION TOPIC”, “TESTS” };

*int array assignmentSize size 8; // to store the number of assignments each type, for example assignmentSize[7]=3 if there are 3 tests, assignmentSize[1] = 10 if there are 10 homework

*float maxScore; size 8 to store the max scores of assignments, for example, maxScore[0] = 5 because only 1 policy quiz and max score is 5, maxScore[7] = 300 because max score of a test is 100 * there are 3 tests

*float studentScores size 8 to store the scores of students, for example studentScores[7] stores total scores of 3 student tests. studentScores[3] stores total scores of student labs

*String arrary stringScores size 8 that keep student scores in string format
stringScores [0] =”5”
stringScores[7] = “75.00 82.50 78.25”

Read general information of assignments:
The course name
How many assignments of each type> to fill up the array assignmentSize
What is max score of each assignment to fill out the array maxScore by the formula:
Max score = max score of each unit * number assignment

Display the menu of Tasks to all users to select the task

TASK1:
-Read information about the student id, last name, first name and the scores of each assignment type
Create the object of data type class FA2021_Student_yourLast name to pass all the information to the object
Use the object to access the methods of class FA2021_Student_yourLastname to display the output of task1
-store the grade information to the output file studentGrades.txt in the requested format:

TASK2
Ask for the id of student who you want to check the grade record
Open file studentGrade.txt to read
For each line, split information to get the student id
Compare student id with id; if they are the same then split all information of the line
Create the student object of data type class
Using the object to access the method of data type class to print out the requested output of the grade of one student

TASK3

-open file studentGrades.txt to read
-read file, for each line, split information and assign to variables to create the object of class FA2021_Adult_yourLastName
Then use the object to access the method in data type class to print output grade of student
-read and print the grade of all students in file

HOW TO TURN IN THE LAB
The UML of data type class, the pseudo-code of main(), output pictures
Following files:
FA2021_Student_yourLastName.java
FA2021_CSGradingStudentsApplication_yourLastName.java
FA2021_Student_yourLastName.class
FA2021_CSGradingStudentsApplication_yourLastName.class

HOW TO GRADE THE PROJECT

TURN IN ON TIME

10

Submit all the requested files, with correct names

Compile success – qualify the requirements

10

Write comments in the program

4

UML and Pseudo-code or flowchart in the file named project_yourLastName.doc

6

Having at least 3 user-defined functions

6

Class F2021_Student_LastName

data members

2

No-argument Constructor – parameter constructor

4

Method toString()

2

Method to calculate sum of assignments scores, sum of max scores

3

Method to calculate the percentage and determine the letter grade

3

Method to create output of task1

2

Method to create output of task2

2

Method to create output of task3

2

Class FA2021_CSGradingStudentsApplication

Create 5 arrays – read information – Read information to fill out the arrays

2

Menu – handle to allow users to continue selecting tasks until they choose exit

2

TASK1: read information from keyboard, create object, access method in data type class,
write to file

8

TASK2: read id, open file, compare id, read, and split information, create object, access method of data type class to display the output

6

TASK3: Open file to read, close file, read file, split information, create the object, access method of data type class to display the grades of all students in requested format

6

Project Scores

80

Looking for this or a Similar Assignment? Click below to Place your Order