Hi Mhd,
The solution to this would be a fairly long program which I don't think would be the right fit for this particular "ask an expert" tool. Do you have any specific question on what you are blocked on?
Mhd H.
asked 12/03/22write a program that can be used to help a teacher enter the grades of his/her students for an assignment.
Your program should request the teacher to enter the following information for each student: name, ID, and grade. To enter a student’s information, implement a form that looks as follows: https://imgur.com/a/YzaOkas
When the teacher clicks an Add button, the program must validate the inputs as follows:
- The student’s name should consist of two substrings consisting of letters only and separated by a single whitespace.
- The student’s id should consist of 8 digits.
- The Work Load grade should be between 0 and 40 of type integer.
- The Midterm grade should be between 0 and 40 of type integer.
- The Final Exam grade should be between 0 and 40 of type integer.
The program assumes that the teacher does not enter the information for the same student twice.
If there is an error in the input, a message dialog must be displayed. It must list all the errors made and ask the teacher to fix the errors and submit again.
If the user closes the window, the program execution should terminate. When the teacher clicks ‘Save and Add new’ the data will be saved and the new form with empty fields will be shown again. If the teacher press ‘show grades’ a form must be displayed showing the results as follows (this is for a sample input):
https://imgur.com/a/A9gwDLF
You are required to use the Java’s Swing GUI components introduced in Chapter 12. You are also free to use the NetBeans IDE GUI Builder.
add save to file and load from file capabilities. This means when the teacher run the program it should check a file (CSV file for example) and load the data from it if it exists. And when the teacher exits the application, it should save all the data back to the file if there were any modifications.
i've been trying to solve this for awhile, and couldnt manage to get it, would appreciate a solution.
(using netbeans)
Hi Mhd,
The solution to this would be a fairly long program which I don't think would be the right fit for this particular "ask an expert" tool. Do you have any specific question on what you are blocked on?
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.