{"id":26906157,"url":"https://github.com/msh-trojan/java_21_inh_2","last_synced_at":"2025-04-01T11:00:13.225Z","repository":{"id":247300935,"uuid":"825484302","full_name":"MSH-trojan/Java_21_Inh_2","owner":"MSH-trojan","description":"A program demonstrating a student with their name, ID number, year of study, major , and fees based on their courseload with the consideration of the year of their study.","archived":false,"fork":false,"pushed_at":"2024-07-07T23:13:18.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-08T00:24:52.442Z","etag":null,"topics":["inheritance","java","overriding","overriding-methods","super-reference"],"latest_commit_sha":null,"homepage":"","language":"Java","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-07T22:51:58.000Z","updated_at":"2024-07-08T00:25:02.497Z","dependencies_parsed_at":"2024-07-08T00:24:53.892Z","dependency_job_id":"17b2dedf-e54d-4101-a724-f9b73d378f3c","html_url":"https://github.com/MSH-trojan/Java_21_Inh_2","commit_stats":null,"previous_names":["msh-trojan/java_21_inh_2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MSH-trojan%2FJava_21_Inh_2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MSH-trojan%2FJava_21_Inh_2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MSH-trojan%2FJava_21_Inh_2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MSH-trojan%2FJava_21_Inh_2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MSH-trojan","download_url":"https://codeload.github.com/MSH-trojan/Java_21_Inh_2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246628206,"owners_count":20808106,"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","overriding","overriding-methods","super-reference"],"created_at":"2025-04-01T11:00:12.646Z","updated_at":"2025-04-01T11:00:13.208Z","avatar_url":"https://github.com/MSH-trojan.png","language":"Java","readme":"# Java_21_Inh_2\n\nWrite a Java program using the classes Student and Undergraduate (extended from Student).  \n\nThe constructor of Student has 2 parameters:  _name and a long student number_, \n\nwhile the constructor of Undergraduate has 4 parameters: _name, number, major program and year_ of studies.  \n\nBoth classes have the method _toString()_ and the method: _public double calculateFees(double courseload)_, which returns the fees to be paid by the student depending on his/her course load.\n\nSuppose that for students generally, the fees are $800/course, and that for undergraduates, there is an additional incidental charge of $100 for first year students and $150 for students in later years.\n\nCreate a Student object with the name “Mary\" and the number 202345678 and an Undergraduate object with the name “John”, the number 201234567,  the ITEC program and in the 1st year.\n\nFor each object display the String produced by the _toString()_ method and the double produced by the _calculateFees()_ method for 4.5 course load.\n\nFinally use a reference of Student type to point to the Undergraduate object and use that reference to display the Undergraduate object. \n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsh-trojan%2Fjava_21_inh_2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsh-trojan%2Fjava_21_inh_2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsh-trojan%2Fjava_21_inh_2/lists"}