{"id":25943594,"url":"https://github.com/julianamancera/lab-assignment-3_oop","last_synced_at":"2025-08-08T04:17:36.967Z","repository":{"id":223423819,"uuid":"760283489","full_name":"JulianaMancera/Lab-Assignment-3_OOP","owner":"JulianaMancera","description":"Object Oriented Programming - Laboratory Assignment 3","archived":false,"fork":false,"pushed_at":"2024-02-20T06:18:40.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T07:17:40.708Z","etag":null,"topics":["object-oriented-programming","payment-application"],"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/JulianaMancera.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}},"created_at":"2024-02-20T06:00:36.000Z","updated_at":"2025-02-07T03:42:02.000Z","dependencies_parsed_at":"2024-02-20T07:23:34.576Z","dependency_job_id":"f5d274d7-fd31-4981-81ad-3d892a215a2f","html_url":"https://github.com/JulianaMancera/Lab-Assignment-3_OOP","commit_stats":null,"previous_names":["juls0706/lab-assignment-3_oop","julsaurus/lab-assignment-3_oop","julianamancera/lab-assignment-3_oop"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JulianaMancera/Lab-Assignment-3_OOP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianaMancera%2FLab-Assignment-3_OOP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianaMancera%2FLab-Assignment-3_OOP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianaMancera%2FLab-Assignment-3_OOP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianaMancera%2FLab-Assignment-3_OOP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JulianaMancera","download_url":"https://codeload.github.com/JulianaMancera/Lab-Assignment-3_OOP/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianaMancera%2FLab-Assignment-3_OOP/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269362176,"owners_count":24404494,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["object-oriented-programming","payment-application"],"created_at":"2025-03-04T07:17:45.191Z","updated_at":"2025-08-08T04:17:36.940Z","avatar_url":"https://github.com/JulianaMancera.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lab-Assignment-3_OOP\n\nDevelop a payment application that allows users to place orders for items, define the quantity, unit price, and choose a payment method (GCash, Maya, ShopeePay). \nThe application should calculate the total amount based on the order details and any applicable discounts offered by the chosen payment method,\nstoring the result in the totalAmount attribute of the Order class.\n\nSpecific requirements:\n* PaymentApp class: This class serves as the entry point for the application. It demonstrates how to create an Order object, set its properties \n(item, quantity, unit price, and payment method), and calculate the total amount based on the chosen payment method.\n* The application should have an Order class that stores information about the ordered item, quantity, unit price, chosen payment method, and the calculated total amount (totalAmount).\n* The application should implement a PaymentMode interface that defines a method for calculating the discount offered by the payment method.\n  \nThe application should have concrete implementations of PaymentMode for GCash, Maya, ShopeePay:\n  - GCash: Does not offer any discount (discount rate = 0.0)\n  - Maya: Offers a 5% discount (discount rate = 0.05)\n  - ShopeePay: Offers a 10% discount\n  \n* The application should allow users to set the payment method for an order and calculate the total amount, storing it in the totalAmount attribute.\n\n\nSample output: \u003cbr\u003e\n\u003cbr\u003e\nOrder item is keyboard.\n\u003cbr\u003eUnit price is 300.0\n\u003cbr\u003eQuantity is 10\n\n\u003cbr\u003ePayment order details  if GCash\n\u003cbr\u003eDiscount rate is 0.0\n\u003cbr\u003ePayment amount is 3000.0\n\n\u003cbr\u003ePayment order details if Maya\n\u003cbr\u003eDiscount rate is 0.05\n\u003cbr\u003ePayment amount is 2850.0\n\n\u003cbr\u003ePayment order details if ShopeePay\n\u003cbr\u003eDiscount rate is 0.10\n\u003cbr\u003ePayment amount is 2700.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulianamancera%2Flab-assignment-3_oop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulianamancera%2Flab-assignment-3_oop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulianamancera%2Flab-assignment-3_oop/lists"}