{"id":26906153,"url":"https://github.com/msh-trojan/java_21_student_data_1","last_synced_at":"2025-06-29T17:05:23.809Z","repository":{"id":248765744,"uuid":"829647346","full_name":"MSH-trojan/Java_21_Student_Data_1","owner":"MSH-trojan","description":"A great example of using JFrame for depicting data for different types of students in a Univeristy.","archived":false,"fork":false,"pushed_at":"2024-07-16T21:27:56.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T11:00:04.434Z","etag":null,"topics":["inheritance","java","jframe","polymorphism-and-abstraction","textarea"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MSH-trojan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-16T21:25:32.000Z","updated_at":"2024-07-16T21:29:40.000Z","dependencies_parsed_at":"2024-07-17T01:50:13.522Z","dependency_job_id":"8a0bfc7a-ee8e-4105-ac4f-39c274a5a71b","html_url":"https://github.com/MSH-trojan/Java_21_Student_Data_1","commit_stats":null,"previous_names":["msh-trojan/java_21_student_data_1"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MSH-trojan/Java_21_Student_Data_1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MSH-trojan%2FJava_21_Student_Data_1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MSH-trojan%2FJava_21_Student_Data_1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MSH-trojan%2FJava_21_Student_Data_1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MSH-trojan%2FJava_21_Student_Data_1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MSH-trojan","download_url":"https://codeload.github.com/MSH-trojan/Java_21_Student_Data_1/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MSH-trojan%2FJava_21_Student_Data_1/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262632335,"owners_count":23340214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["inheritance","java","jframe","polymorphism-and-abstraction","textarea"],"created_at":"2025-04-01T11:00:10.924Z","updated_at":"2025-06-29T17:05:23.780Z","avatar_url":"https://github.com/MSH-trojan.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java_21_Student_Data_1\n\nIntroduction:\n\nIn this assignment you will create a JFrame application for a university, organizing student data inside a Registrar object. The class corresponding to this JFrame application is called TestStudents. \nThe class Registrar contains a single array st[] containing up to 100 objects of Undergrad and Grad type. \n\nYour Task\n\nStart by writing the class TestStudents as a JFrame application of the size (500,600).  \n\nInside the constructor TestStudents() create an object rg of Registrar type and use its methods addUndergrad() and addGrad() to create objects of Undergrad and Grad type, which should become the elements of the array st[].  Use the following code:\n\n        Registrar rg = new Registrar ();\n        rg.addUndergrad(\"Jones\", 1,\"ITEC1000\", \"ITEC1010\", \"ITEC1620\"); \n        rg.addGrad(\"Johnson \", \"ITEC5260\", \"Cybersecurity\");\n        rg.addUndergrad(\"Jordan\", 1.1, \"ITEC2610\", \"ITEC2600\", \"ITEC2620\");\n        rg.addUndergrad(\"Hamza\", 1.2, \"ITEC3220\", \"ITEC3230\", \"ITEC3210\");\n        rg.addGrad(\"Adams\", \"ITEC5710\", \"Cloud application\");\n        String s = rg.printReport() + \"\\n\";\n        s += \"****************************************************************\\n\";\n        s += rg.printAllGrads();\n        JTextArea t1 = new JTextArea( s, 80, 40 );\n        container.add( new JScrollPane( t1 ) );  \n\nIn the same file, below class TestStudents add classes Registrar, Registrar, Student, Undergrad and Grad.  Details are given below. \nFirst create class Registrar, which has the array st[] and the following methods:\n void addUndergrad(String, double, String, String, String)\n void addGrad (String, String, String) \n String printReport()\n String printAllGrads()\n\nClasses Undergrad and Grad are derived from class Student.  \nClass Student has encapsulated String name.  \nClass Undergrad has the encapsulated Strings course1, course2 and course3 and the double fee.  \nThe class Grad has the encapsulated Strings course and project and the double fee.  \nEach class should have a constructor and a method toString() which will return a string that displays all the information shown in the required output window. At the end of each string appears also the fee calculated with the method getFee().\n\nFor undergrads at the level 1000 the fee for each course $850, for the level 2000 the fee per course is  $850 times 1.1, while for the level 3000 the fee per course is $850 times 1.2.  \nFor grad students the fee for the course is $1050 and the fee for the project is $1250. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsh-trojan%2Fjava_21_student_data_1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsh-trojan%2Fjava_21_student_data_1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsh-trojan%2Fjava_21_student_data_1/lists"}