subject

This assignment is build using your code from Assignment 5. Req 1 - Create a custom exception handler class called StudentGradingException that can (add this functionality in a package called exception)

Centralize capture of all exceptions
Logs exceptions in a text file.
Fix at least one exception.
Demonstrate the usage of exception handler in a driver, throwing, logging and fixing the exception. Put this in a separate driver called Driver1. java. (Put this in driver package)

Req 2 - Deliver the grade for each student in a serialized file. ((add this functionality in a package called util and place the FileIO class in util package) HINT: https://docs. oracle. com/en/java/javase/11/docs/api/java . base/java/io/Serializable. html (Links to an external site.)

Imagine you are getting your grade report in a serialized file. This will contain your id, lab scores and high, low and avg for each quiz.

You should create a new class called StudentGrade (that contains Student and Statistics), then write a method to serialize StudentGrade in FileIO class.

Demonstrate serializing StudentGrade object in a separate driver called Driver2. java. (Put this in driver package)

Req 3 - Implement abstract class and Interface (add this functionality in a package called adapter)

Create an API (A programming interface) to
Print student statistics
Print score for a given student id

You should create an Interface called StudentAPI in which two methods are declared for functionality (Req 3 - 1 and 2) stated above.

You should create a class StudentAPIImpl that would implement StudentAPI. Using methods from other classes, (Student. java, Statistics. java, StudentGrade. java, FileIO. java) implement the two methods in StudentAPI.

Create a driver demonstrating the usage of the API. Put this in a separate driver called Driver3. java. (Put this in driver package)

Ive linked my .java and txt files for assignment 5

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:00
Is it ok to use a does red wine clean the inside of a computer true or false
Answers: 2
question
Computers and Technology, 22.06.2019 19:30
The following is an excerpt from a slide presentation. today we will inverse operations solving equations using inverse operations solving inequalities using inverse operations from which part of the presentation does the slide most likely come from? a. introduction b. outline c. body d. conclusion
Answers: 1
question
Computers and Technology, 24.06.2019 09:40
Healthy study habits are best described as
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
Computer security/cybersecurity1) each of the following code fragments contains a number of security vulnerabilities. for each fragment, identify these security vulnerabilities and, for each vulnerability, discuss at least one way that it could be improved. note that in your discussion of how each vulnerability could be improved, you do not need to re-write a new version of the program in c; simply discuss your solution, either in pseudocode or in 1-2 sentences.a) /* file descriptor leak */#include #include int main(int argc, char *argv[]){ char *filepath = argv[0]; char *shellpath = argv[1]; file *passwords; passwords = fopen(filepath, "r"); /* read the password and do something with it */ /* . . */ /* fork and execute alternative shell */ execl(shellpath, "shell", null); }b)#include /* assume the following function is written for an electronic storefront. the user will enter the id of the item to be ordered, as well as the quantity of units that they would like to purchase. the program will then lookup the price for the price for the item using a predefined function, and return the total cost of the order.*/int gettotalcost(){ char itemid[9]; int price, unitsordered, cost; printf(" enter the 9-digit id of the item to be ordered: "); scanf("%s", & itemid); /* lookup the price according to the itemid */ price = getpricebyid(itemid); printf(" enter the quantity of units to be ordered: "); scanf("%d", & unitsordered); cost = price * unitsordered; return cost; }c)#include /* the following function is intended to return a user's full name by concatenating the user's first and last name into a single string and then returning that string. */char *getfullname(char *firstname, char *lastname, int max_len){ char fullname[max_len]; strcpy(fullname, firstname); strcat(fullname, " "); strcat(fullname, lastname); return fullname; }d)#include /* the following code snippet runs through the list of cli arguments entered and displays them to the console. */int main(int argc, char *argv[]){ int i; printf("you've entered the following arguments: "); for(i = 0; i < argc; i++){ print(argv[i]); printf("\n"); } /* */}
Answers: 2
You know the right answer?
This assignment is build using your code from Assignment 5. Req 1 - Create a custom exception handl...
Questions
question
Mathematics, 28.05.2021 18:10
question
Mathematics, 28.05.2021 18:10
question
Mathematics, 28.05.2021 18:10