{"id":13305578,"url":"https://github.com/Churreesha/CFG-Coding-Challenge","last_synced_at":"2025-03-10T13:31:45.203Z","repository":{"id":183636036,"uuid":"670485670","full_name":"Churreesha/CFG-Coding-Challenge","owner":"Churreesha","description":"Solved various problems for the Code First Girls MOOC Coding Challenge using Python and displayed it visually with a flowchart  and thoroughly explained the process with a Google Slides presentation. Was awarded certificate for successful completion of the challenge and participation.","archived":false,"fork":false,"pushed_at":"2023-07-25T07:32:41.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-07-25T08:32:17.697Z","etag":null,"topics":["google-slides","python"],"latest_commit_sha":null,"homepage":"https://docs.google.com/presentation/d/1W1FteRHhLfMR9k61uMobkDvpm1Y-m0uVedm0-05RVNE/edit#slide=id.p","language":"Python","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/Churreesha.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}},"created_at":"2023-07-25T06:53:37.000Z","updated_at":"2023-07-25T08:32:20.327Z","dependencies_parsed_at":"2023-07-25T08:42:25.293Z","dependency_job_id":null,"html_url":"https://github.com/Churreesha/CFG-Coding-Challenge","commit_stats":null,"previous_names":["churreesha/cfg-coding-challenge"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Churreesha%2FCFG-Coding-Challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Churreesha%2FCFG-Coding-Challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Churreesha%2FCFG-Coding-Challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Churreesha%2FCFG-Coding-Challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Churreesha","download_url":"https://codeload.github.com/Churreesha/CFG-Coding-Challenge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221175719,"owners_count":16769874,"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":["google-slides","python"],"created_at":"2024-07-29T17:53:54.442Z","updated_at":"2024-10-23T08:31:02.853Z","avatar_url":"https://github.com/Churreesha.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Screenshot 2023-07-25 032842](https://github.com/Churreesha/CFG-Coding-Challenge/assets/104545210/aafbc957-bac3-4b50-9b28-d5db93b6b10b)\n# CFG-Coding-Challenge\nSOLVE A SERIES OF CODING CONUNDRUMS USING FLOWCHARTS AND PSEUDOCODE \n\nThe Challenge\n\nEach group will be presented with 5 coding problems. There will be 3 core problems and 2 additional problems. Students in teams will submit responses to 2 out of 5 questions for this challenge of their choosing. You can attempt more than 2 if time permits and will be getting additional points or doing so.\n\n**I decided to work independently and solve all 3 core problems as well as the 2 additional problems.**\n\nThe challenges were: \n\n**1) (Core Problem) Should we round up the final grade?**\n   \nEvery subject is graded from 0 to 100%. Less than 40% is failing grade and more than 80% is a distinction. \nWe can round up a grade:\nIf the difference between the  grade and the next multiple of 5  is less than 3, round  up to the next multiple of 5.\nIf the value of  is less than 40, no rounding occurs as the result will still be a failing grade.\n\nGiven a input grade, round it up if appropriate and tell us if the student passed, failed or received a distinction.  Write a algorithm and produce a flow chart.\n\n**2) (Core Problem) Sorting an array.**\n\nYou have an array of maximum size of 100 with DISTINCT integers. Write a algorithm and produce a flow chart that sorts this array from smallest to largest. \n\nEXAMPLE:\n\n[1, 4, 5, 66, 3, 84, 11, 198] \n\nSORTED:\n\n[1, 3, 4, 5, 11, 66, 84, 198]\n\n**3) (Core Problem) Search a number in a sorted matrix.**\n\nYou are given a matrix (a list of lists) of DISTINCT integers and a target number. Each row in the matrix is SORTED and each column in the matrix is SORTED. Our matrix does not necessarily have the same height and width.\n\nWrite a pseudocode and produce a flowchart that:\nFinds the number and report back its location (row and column indices of the target integer), if it is contained in the matrix\notherwise report back that the integer is not in the matrix.\n\nEXAMPLE matrix:\n\nmatrix = [\n[1,4,7,12,15,1000],\n[2,5,19,31,32,1001],\n[3,8,24,33,35,1002],\n[40,41,42,44,45,1003],\n[99,100,103,106,128,1004]\n]\n\ntarget = 44\n\nEXAMPLE result:\n\nresult = [3,3]\n\n**4) (Additional Problem) Find factorial of n.**\n\nWhat are factorials: https://en.wikipedia.org/wiki/Factorial\n\nThe value of n will be small, less than 100. How could we use a lookup table to find the factorial not in the table already. If you would run the program, the first time the look up table would be empty. \n\nProduce a pseudo code and a flowchart that allows us to find a factorial of a integer n. \n\nEXAMPLE: \n\nFactorial of 1 is 1! = 1.\n\nFactorial of 2 is 2! = 1 * 2 = 2.\n\nFactorial of 3 is 3!= 1 * 2 * 3 = 3 * 2! = 6\n\nFactorial of 4 is 4!= 1 * 2 * 3 * 4 = 4 * 3! =  4 * 6\n\nThis gives us a general formula to find factorial: n! = n * (n-1)!\n\n\n**5) (Additional Problem) Hide the credit card digits.**\n\n\nThere are 16 digits on a credit card. Every 4 digits are separated by a space. Start by generating a random credit card number. \n\nFor security reasons, you are going to hide the first 12 digits on the credit card.\n\nExample:\n\nRandomly generated credit card number: 5486 3251 6584 7855\n\nAfter hiding the first 12 digits, it would be: XXXX XXXX XXXX 7855\n\n\nProduce a pseudo code and a flowchart. \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChurreesha%2FCFG-Coding-Challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FChurreesha%2FCFG-Coding-Challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChurreesha%2FCFG-Coding-Challenge/lists"}