# \[SOLVED\] I need help creating a python program for my studies

**URL:** <https://onehack.st/t/solved-i-need-help-creating-a-python-program-for-my-studies/62735>\
**Category:** Discussion & Solutions\
**Tags:** solved\
**Created:** [November 26, 2019, 3:30pm UTC](https://onehack.st/t/solved-i-need-help-creating-a-python-program-for-my-studies/62735 "2019-11-26T15:30:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Linas\_Smita](https://onehack.st/user_avatar/onehack.st/linas_smita/32/22077_2.png) [@Linas\_Smita](https://onehack.st/u/Linas_Smita)\
**Post date:** [November 26, 2019, 3:30pm UTC](https://onehack.st/t/solved-i-need-help-creating-a-python-program-for-my-studies/62735/1 "2019-11-26T15:30:29Z")

</div>

I need help developing this program, i need help from you guys, who is good with PYTHON PROGRAMING LANGUAGE, i have 3 days left to make this application.

To help students understand their grades, UniColl administrative department has decided to  
introduce a system that shows students their respective grades based on the marks entered against  
the courses. As part of the IT team, you are to develop a system that calculates the grade of each  
student as well as the Grade Point Average. The system prompts each subject and ask students to  
input their corresponding marks.  
The following scheme shows how to determine the grade:

Subject Credits Marks Grade Grade Unit  
Math 2 0-39 Fail (F) 0  
English 2 40-49 Pass (P) 2  
Programming 3 50-59 Credit (C) 3  
Database Desi 3 60-69 Distinction (B) 4  
70 and above Upper Distinction (A) 5

Write a program to calculate the grade based on the marks inputted by the students. Your program  
should request from the user particular subject’s marks to calculate the grade and the total points  
for the semester. Further, apply loop control structure to continue the program until user enter ‘exit’.

The program should be user friendly by personalizing experience, asks student for the respective  
grades in each subject (as tabled above in no particular order) and based on the user’s input,  
calculates the grade and projects the Grade Point Average.  
The table below gives an illustration of a ‘User X’ marks inputted, grades and the Grade Point  
Average:

Subject Marks Inputted Grade  
Math 43 Pass or P  
English 55 Credit or C  
Programming 88 Upper Distinction or A  
Database Design 64 Distinction or B  
Grade Point Average for this semester is 3.7

Note: The Grade Point Average is calculated as follows:  
Total of (Grade Unit X Subject Credit) / Total of All Credits (10)  
Apply appropriate user input validation in order to provide correct input by the user using an IDE  
(e.g. Visual studio 2017 or IDLE). Your program should be able to ask the student if they wish to  
use the system again after a session has been completed; this can be illustrated through the  
implementation of the loop control structures. In addition, student input has to be validated to ensure  
the correct input is entered (in this case, numbers only). From your experience using IDE to develop  
the program, evaluate the importance of using an IDE (e.g. Visual studio 2017 or IDLE) in the  
development process contrasted with not using an IDE (e.g. text editor, command console)  
Hint: The illustration of pre-defined, user-defined functions as well as the use of global and local  
variables are expected in your python programming codes to implement the grade system.

A description like Features and all stuff goes here…

Requirements

Drop the requirements of tools/scripts here before user make the deal…

Instructions/Installation/Usage

All the How to’s stuff goes here…

Bugs so far

Issue Reporting Guideline kinda stuff goes here…

Note

Any important notes regarding tools/scripts goes here…

> Disclaimer

> This post is provided to help you and for personal use only. Sharing the content of your subscribed materials and the other purchased content is strictly prohibited under 1Hack Terms of Use.
> 
> By using this provided material the website [1Hack.us](http://1Hack.us) is not responsible for any law infringement caused by the users of this material.

---

<div class="post-metadata">

**Author:** ![xxx](https://onehack.st/user_avatar/onehack.st/xxx/32/18029_2.png) [@xxx](https://onehack.st/u/xxx)\
**Post date:** [November 27, 2019, 1:09am UTC](https://onehack.st/t/solved-i-need-help-creating-a-python-program-for-my-studies/62735/2 "2019-11-27T01:09:26Z")

</div>

you should hire a developer, I think!

---

<div class="post-metadata">

**Author:** ![Tony\_T](https://onehack.st/user_avatar/onehack.st/tony_t/32/18476_2.png) [@Tony\_T](https://onehack.st/u/Tony_T)\
**Post date:** [November 27, 2019, 3:37pm UTC](https://onehack.st/t/solved-i-need-help-creating-a-python-program-for-my-studies/62735/3 "2019-11-27T15:37:05Z")

</div>

Yup, hire a Py Programmer

---

<div class="post-metadata">

**Author:** ![swissbeats93](https://onehack.st/user_avatar/onehack.st/swissbeats93/32/19661_2.png) [@swissbeats93](https://onehack.st/u/swissbeats93)\
**Post date:** [November 27, 2019, 3:42pm UTC](https://onehack.st/t/solved-i-need-help-creating-a-python-program-for-my-studies/62735/4 "2019-11-27T15:42:13Z")

</div>

This is a really simple problem to do in Python. What have you done so far so we can help you improve further. I personally can’t write a solution for you because you won’t learn anything

---

<div class="post-metadata">

**Author:** ![goku\_pistol](https://onehack.st/user_avatar/onehack.st/goku_pistol/32/24327_2.png) [@goku\_pistol](https://onehack.st/u/goku_pistol)\
**Post date:** [November 29, 2019, 4:34pm UTC](https://onehack.st/t/solved-i-need-help-creating-a-python-program-for-my-studies/62735/5 "2019-11-29T16:34:56Z")

</div>

It seems like the undergrad “Programming Language” 1st assignment 😅. I agree with @swissbeats93. But I assume you are beginner and trying to learn programming for first time, and you don’t know where to begin. So, let me just guide you. (Please write your own code, at first it might look difficult but practice hard and it will get easier)

1. First print the message and ask user to enter marks for one subject
2. Input the marks and store it in a variable.
3. Follow same for other subjects
4. Use condition statements(if-else) on variable for grade calculation. For example if “programming” mark is more than 70 and less than 100 then grade is "Upper Distinction’ or “(A) 5”. Do this for all subjects.
5. After writing conditions for all subjects you will realise that code is repeating, so, this is when you should define a function. So, define a function which takes marks and returns grade. (using “if” and “elif” statements inside function).
6. Now, instead of writing all if else statements for each subject just call the function (one statement) for each subject to calculate grade.
7. Grade point average is same as you learn in maths, just use that equation.(Given: Total of (Grade Unit X Subject Credit) / Total of All Credits (10) )
8. I am leaving Loop control for infinite input for you to figure out.
9. For personalising experience, print message where needed.So user can understand what to enter.  
I might have missed something, that is for you to determine 😅

I don’t recommend hiring programmer, I recommend becoming one!  
I am sorry if you missed the deadline. All the best with studies.
