{"id":20840517,"url":"https://github.com/danielbatres/activity-one-java","last_synced_at":"2025-03-12T10:13:23.632Z","repository":{"id":55606351,"uuid":"523134369","full_name":"danielbatres/activity-one-java","owner":"danielbatres","description":"Activity Number One - Indications: Create a project and within the project 12 classes will be generated that will correspond to the requested exercises","archived":false,"fork":false,"pushed_at":"2022-08-13T01:31:03.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T00:00:46.686Z","etag":null,"topics":["exercises","java","practice"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielbatres.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-09T23:10:27.000Z","updated_at":"2023-10-26T23:40:28.000Z","dependencies_parsed_at":"2022-08-15T04:10:51.228Z","dependency_job_id":null,"html_url":"https://github.com/danielbatres/activity-one-java","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbatres%2Factivity-one-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbatres%2Factivity-one-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbatres%2Factivity-one-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbatres%2Factivity-one-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielbatres","download_url":"https://codeload.github.com/danielbatres/activity-one-java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243196657,"owners_count":20251861,"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":["exercises","java","practice"],"created_at":"2024-11-18T01:16:44.217Z","updated_at":"2025-03-12T10:13:23.605Z","avatar_url":"https://github.com/danielbatres.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Activity Number One Java\r\n\r\n## Degree: Second Year in Sotware Development \"A\" and \"B\"\r\n\r\n## Daniel García Batres #13 \"B\"\r\n\r\nIndications: Create a project and within the project 12 classes will be generated that will correspond\r\nto the requested exercises\r\n\r\n1. Create a class that prints the sum of two numbers if they are equal and calculates the product of\r\n   both are different.\r\n\r\n   [Exercise N°1 Class](https://github.com/danielbatres/activity-one-java/blob/main/src/Exercise/Exercise1.java)\r\n\r\n2. Create a class that calculates the area of ​​a rectangle, print results.\r\n\r\n    [Exercise N°2 Class](https://github.com/danielbatres/activity-one-java/blob/main/src/Exercise/Exercise2.java)\r\n\r\n3. Create a class that calculates the hypotenuse of a triangle (research the functions to get\r\n   square root and powers)\r\n\r\n    [Exercise N°3 Class](https://github.com/danielbatres/activity-one-java/blob/main/src/Exercise/Exercise3.java)\r\n\r\n4. Create a java application that, based on an employee's salary, calculates the discount of the\r\n   income, verify if said discount can be applied (According to the table, it will be assumed that the salary is\r\n   monthly). Show on the screen the total salary that the employee will receive.\r\n\r\n    [Exercise N°4 Class](https://github.com/danielbatres/activity-one-java/blob/main/src/Exercise/Exercise4.java)\r\n\r\n5. Create a java application that allows you to calculate the factorial of an integer.\r\n\r\n    [Exercise N°5 Class](https://github.com/danielbatres/activity-one-java/blob/main/src/Exercise/Exercise5.java)\r\n\r\n6. Create a java application that prints the first 100 prime numbers.\r\n\r\n    [Exercise N°6 Class](https://github.com/danielbatres/activity-one-java/blob/main/src/Exercise/Exercise6.java)\r\n\r\n7. Make a solution that prints “even” or “odd” after you have read and verified a\r\n   whole number.\r\n\r\n    [Exercise N°7 Class](https://github.com/danielbatres/activity-one-java/blob/main/src/Exercise/Exercise7.java)\r\n\r\n8. Given the coordinates of a point in the Cartesian plane, display a message indicating in\r\n      which quadrant is located, if it is on the x-axis, y-axis, or at the origin.\r\n\r\n    [Exercise N°8 Class](https://github.com/danielbatres/activity-one-java/blob/main/src/Exercise/Exercise8.java)\r\n\r\n10. In a cinema there is a 50% discount on the value of the ticket for people over 60\r\n    years and those under 18 years of age, the rest of the people pay the amount without discount. given the age\r\n    of the person and the price of the ticket, calculate how much a person will pay for their ticket.\r\n\r\n     [Exercise N°9 Class](https://github.com/danielbatres/activity-one-java/blob/main/src/Exercise/Exercise9.java)\r\n\r\n11. Given the name of the client, and the value of the purchase, calculate the amount to pay considering the\r\n    following: If the purchase is less than or equal to $75.00, there is NO discount. If the purchase is greater than\r\n    $75.00, you have a 5% discount If the purchase is greater than $150.00, you have a 10% discount\r\n    The name of the client, the value of the purchase and the actual amount to be paid must be printed.\r\n\r\n    [Exercise N°10 Class](https://github.com/danielbatres/activity-one-java/blob/main/src/Exercise/Exercise10.java)\r\n\r\n12. You want to calculate the salary of a worker, taking the hours worked during the week\r\n    and the type of position you perform, design the solution that allows you to display the data of the\r\n    employee and his weekly salary, knowing that the class A worker is paid $7.00/hour, the class B\r\n    $8.50, class C $10.00 and class D $12.50.\r\n\r\n    [Exercise N°11 Class](https://github.com/danielbatres/activity-one-java/blob/main/src/Exercise/Exercise11.java)\r\n\r\n13. Design a solution that, given the grades of a group of students (whose number is known)\r\n    calculate and print the average grade.\r\n\r\n    [Exercise N°12 Class](https://github.com/danielbatres/activity-one-java/blob/main/src/Exercise/Exercise12.java)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielbatres%2Factivity-one-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielbatres%2Factivity-one-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielbatres%2Factivity-one-java/lists"}