From 1ae264f0b293717a8f2c610cce285cb6ff226022 Mon Sep 17 00:00:00 2001 From: 0x00CCSec Date: Tue, 23 Feb 2021 23:18:43 +0100 Subject: [PATCH 01/12] Create pull_request_template.md --- .github/pull_request_template.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1 @@ + From 1d76f04201d1a9ddb72b47e5281a7b1bf358153a Mon Sep 17 00:00:00 2001 From: 0x00CCSec Date: Tue, 23 Feb 2021 23:28:25 +0100 Subject: [PATCH 02/12] created PR template --- .github/pull_request_template.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 8b13789..bd44239 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1 +1,12 @@ +Submission +⚠️ THIS IS A PULL REQUEST TEMPLATE! ⚠️ This helps you complete a pull request. Please follow the instructions below. + +## Submission Checklist ✅ +If you are making a submission, please complete the below checklist. Failure to follow these instructions may result in your pull request being closed without review, and may affect your submission😭 + +- [ ] I read the instructions to before proceeding. +- [ ] I created the my files inside the submission folder in the `submission branch`. +- [ ] I named my `submission` folder after my Matric No. +- [ ] I have applied the `submission` label to my pull request. +- [ ] I understand that a reviewer will merge my pull request after review, and that I must not merge a pull request myself. From be5cf66109f26a98ce6c174034d977ecabc22723 Mon Sep 17 00:00:00 2001 From: 0x00CCSec Date: Tue, 23 Feb 2021 23:35:35 +0100 Subject: [PATCH 03/12] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ad102dd..4ecec8a 100644 --- a/README.md +++ b/README.md @@ -23,4 +23,4 @@ This repository is strictly for individuals who wrote their codes with Python La - Commit and Push your works and updates to the submission branch you've been working on -- When finally done, create a PR and merge your work after correctly checking everything on the PR template +- When finally done, create a PR with the title "**submission**" after correctly checking everything on the PR template From e1a3235e68ab4b85f00cc246dfed2c69dd3ba1d1 Mon Sep 17 00:00:00 2001 From: 0x00CCSec Date: Tue, 23 Feb 2021 23:36:49 +0100 Subject: [PATCH 04/12] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ecec8a..de9e683 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Python Language [![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/) -This repository is strictly for individuals who wrote their codes with Python Language +This repository is strictly for individuals who wrote either their CGPA or Transcript Generator projects or codes with Python Language ## How do I submit my project file/code? From d898a1552232ddd86f6a1b9b0f274624f8d45b27 Mon Sep 17 00:00:00 2001 From: 0x00CCSec Date: Tue, 23 Feb 2021 23:38:35 +0100 Subject: [PATCH 05/12] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index de9e683..149a93a 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# Python Language +# Python Language :snake: [![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/) This repository is strictly for individuals who wrote either their CGPA or Transcript Generator projects or codes with Python Language -## How do I submit my project file/code? +## How do I submit my project file/code? :detective: - Enter the appropriate repository matching your code sample From 1d8bf3de21f462764ebec6038be8f24259cc6f6b Mon Sep 17 00:00:00 2001 From: 0x00CCSec Date: Wed, 24 Feb 2021 06:18:11 +0100 Subject: [PATCH 06/12] Update README.md --- README.md | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 149a93a..3ec846d 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,7 @@ # Python Language :snake: [![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/) -This repository is strictly for individuals who wrote either their CGPA or Transcript Generator projects or codes with Python Language - -## How do I submit my project file/code? :detective: +This repository is strictly for individuals who wrote either their CGPA or Transcript Generator projects or codes with Python Language. - Enter the appropriate repository matching your code sample @@ -13,14 +11,14 @@ This repository is strictly for individuals who wrote either their CGPA or Trans - Head on to the forked repository if using remote access or the cloned repository if making changes from your local machine. -- Make sure to avoid making changes to **main branch** by switching to **submissions branch**. Use ``git switch submissions`` or ``git checkout submissions`` to switch to the submission branch first - -- Navigate to submissions folder in the repository under the **submissions branch** +- Navigate to submissions directory in the repository inside C folder -- Create a new folder inside **submissions** folder with your *Matriculation Number* as the folder name Example: (Folder name): ENG1503XXXX +- Create a new folder inside submissions with your *Matriculation Number* as the folder name Example: (Folder format): ENG1503XXXX - Place all related codes in this personally created folder -- Commit and Push your works and updates to the submission branch you've been working on +- Commit and Push your works and updates + +- When finally done, create a PR to the **submission branch** with the PR title "**submission**" after correctly checking everything on the PR template -- When finally done, create a PR with the title "**submission**" after correctly checking everything on the PR template +[![Open Source Love png3](https://badges.frapsoft.com/os/v3/open-source.png?v=103)](https://github.com/ellerbrock/open-source-badges/) From 8799aa56763b64f752629dfe2e7b80dea5de12c2 Mon Sep 17 00:00:00 2001 From: CrazyChickenDev Date: Wed, 24 Feb 2021 06:23:05 +0100 Subject: [PATCH 07/12] changed folder name --- submissions/{folder => ENG1XXXXXX}/code.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename submissions/{folder => ENG1XXXXXX}/code.md (100%) diff --git a/submissions/folder/code.md b/submissions/ENG1XXXXXX/code.md similarity index 100% rename from submissions/folder/code.md rename to submissions/ENG1XXXXXX/code.md From 58b59a51d289a5647c6c0bbed23ec54407c7b3e8 Mon Sep 17 00:00:00 2001 From: 0x00CCSec Date: Wed, 24 Feb 2021 06:26:18 +0100 Subject: [PATCH 08/12] updated PR template --- .github/pull_request_template.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index bd44239..c35aee7 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -3,10 +3,10 @@ Submission ⚠️ THIS IS A PULL REQUEST TEMPLATE! ⚠️ This helps you complete a pull request. Please follow the instructions below. ## Submission Checklist ✅ -If you are making a submission, please complete the below checklist. Failure to follow these instructions may result in your pull request being closed without review, and may affect your submission😭 +If you are submitting, please complete the below checklist. Failure to follow these instructions may result in your pull request being closed without review and may affect your submission.😭 -- [ ] I read the instructions to before proceeding. -- [ ] I created the my files inside the submission folder in the `submission branch`. +- [ ] I read the instructions before proceeding. - [ ] I named my `submission` folder after my Matric No. - [ ] I have applied the `submission` label to my pull request. -- [ ] I understand that a reviewer will merge my pull request after review, and that I must not merge a pull request myself. +- [ ] This PR was directed to the`submission branch` and not `main`. +- [ ] I understand that a reviewer will merge my pull request after review and that I must not merge a pull request myself. From fcfea5c05df9c89873d258fa4c50a9b9cb4bad35 Mon Sep 17 00:00:00 2001 From: 0x00CCSec Date: Wed, 24 Feb 2021 07:04:47 +0100 Subject: [PATCH 09/12] Rename code.md to code.py --- submissions/ENG1XXXXXX/{code.md => code.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename submissions/ENG1XXXXXX/{code.md => code.py} (100%) diff --git a/submissions/ENG1XXXXXX/code.md b/submissions/ENG1XXXXXX/code.py similarity index 100% rename from submissions/ENG1XXXXXX/code.md rename to submissions/ENG1XXXXXX/code.py From db20dcde472794ca0c3ad0593dc6c5ac67937723 Mon Sep 17 00:00:00 2001 From: jetbangs <61312802+jetbangs@users.noreply.github.com> Date: Tue, 9 Mar 2021 20:15:59 -1100 Subject: [PATCH 10/12] Add files via upload --- .../ENG1XXXXXX/ENG1603884/gp calculator.py | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 submissions/ENG1XXXXXX/ENG1603884/gp calculator.py diff --git a/submissions/ENG1XXXXXX/ENG1603884/gp calculator.py b/submissions/ENG1XXXXXX/ENG1603884/gp calculator.py new file mode 100644 index 0000000..e1ede57 --- /dev/null +++ b/submissions/ENG1XXXXXX/ENG1603884/gp calculator.py @@ -0,0 +1,43 @@ +''''This code calculates the cgpa of students''' + +print('Enter the total number of courses you offer:') +course_number = int(input()) + +# creates empty lists to store the inputs from the users +courses = [] +grade_points = [] +credit_points = [] +sub_totalList = [] + + +for a in range(course_number):#a loop that loops according to the number of courses offered + + + def convertGrade(grade):#function that converts the grade of the student to grade points + if grade == 'A' or grade == 'a': + return 5 + elif grade == 'B' or grade == 'b': + return 4 + elif grade == 'C' or grade == 'c': + return 3 + elif grade == 'D' or grade == 'd': + return 2 + elif grade == 'F' or grade == 'f': + return 0 + + print('Enter the course code:') + course = input() + courses.append(course)#adds the input to the course list + print('Enter the course credit:') + credit = int(input()) + credit_points.append(credit)#adds input to the credit_points list + print('Enter your grade for the course:') + grade = input() + convertGrade(grade)#the function to convert the grades is called + sub_total = convertGrade(grade)*credit + sub_totalList.append(sub_total)#adds input to the sub_totalList list + grade_points.append(grade)#adds input to the grade_points list + + +gpa = sum(sub_totalList)/sum(credit_points)#gpa formula +print("Your GP is " + gpa) From 3527bd960f9039be169cda8025c538a46536bc00 Mon Sep 17 00:00:00 2001 From: jetbangs <61312802+jetbangs@users.noreply.github.com> Date: Tue, 9 Mar 2021 20:18:09 -1100 Subject: [PATCH 11/12] Add files via upload --- submissions/ENG1603884/gp calculator.py | 43 +++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 submissions/ENG1603884/gp calculator.py diff --git a/submissions/ENG1603884/gp calculator.py b/submissions/ENG1603884/gp calculator.py new file mode 100644 index 0000000..e1ede57 --- /dev/null +++ b/submissions/ENG1603884/gp calculator.py @@ -0,0 +1,43 @@ +''''This code calculates the cgpa of students''' + +print('Enter the total number of courses you offer:') +course_number = int(input()) + +# creates empty lists to store the inputs from the users +courses = [] +grade_points = [] +credit_points = [] +sub_totalList = [] + + +for a in range(course_number):#a loop that loops according to the number of courses offered + + + def convertGrade(grade):#function that converts the grade of the student to grade points + if grade == 'A' or grade == 'a': + return 5 + elif grade == 'B' or grade == 'b': + return 4 + elif grade == 'C' or grade == 'c': + return 3 + elif grade == 'D' or grade == 'd': + return 2 + elif grade == 'F' or grade == 'f': + return 0 + + print('Enter the course code:') + course = input() + courses.append(course)#adds the input to the course list + print('Enter the course credit:') + credit = int(input()) + credit_points.append(credit)#adds input to the credit_points list + print('Enter your grade for the course:') + grade = input() + convertGrade(grade)#the function to convert the grades is called + sub_total = convertGrade(grade)*credit + sub_totalList.append(sub_total)#adds input to the sub_totalList list + grade_points.append(grade)#adds input to the grade_points list + + +gpa = sum(sub_totalList)/sum(credit_points)#gpa formula +print("Your GP is " + gpa) From e3e0ae6c8dce21335dc0cd0cdfbcff5561c66c1a Mon Sep 17 00:00:00 2001 From: jetbangs <61312802+jetbangs@users.noreply.github.com> Date: Tue, 9 Mar 2021 20:18:46 -1100 Subject: [PATCH 12/12] Delete submissions/ENG1XXXXXX/ENG1603884 directory --- .../ENG1XXXXXX/ENG1603884/gp calculator.py | 43 ------------------- 1 file changed, 43 deletions(-) delete mode 100644 submissions/ENG1XXXXXX/ENG1603884/gp calculator.py diff --git a/submissions/ENG1XXXXXX/ENG1603884/gp calculator.py b/submissions/ENG1XXXXXX/ENG1603884/gp calculator.py deleted file mode 100644 index e1ede57..0000000 --- a/submissions/ENG1XXXXXX/ENG1603884/gp calculator.py +++ /dev/null @@ -1,43 +0,0 @@ -''''This code calculates the cgpa of students''' - -print('Enter the total number of courses you offer:') -course_number = int(input()) - -# creates empty lists to store the inputs from the users -courses = [] -grade_points = [] -credit_points = [] -sub_totalList = [] - - -for a in range(course_number):#a loop that loops according to the number of courses offered - - - def convertGrade(grade):#function that converts the grade of the student to grade points - if grade == 'A' or grade == 'a': - return 5 - elif grade == 'B' or grade == 'b': - return 4 - elif grade == 'C' or grade == 'c': - return 3 - elif grade == 'D' or grade == 'd': - return 2 - elif grade == 'F' or grade == 'f': - return 0 - - print('Enter the course code:') - course = input() - courses.append(course)#adds the input to the course list - print('Enter the course credit:') - credit = int(input()) - credit_points.append(credit)#adds input to the credit_points list - print('Enter your grade for the course:') - grade = input() - convertGrade(grade)#the function to convert the grades is called - sub_total = convertGrade(grade)*credit - sub_totalList.append(sub_total)#adds input to the sub_totalList list - grade_points.append(grade)#adds input to the grade_points list - - -gpa = sum(sub_totalList)/sum(credit_points)#gpa formula -print("Your GP is " + gpa)