Nele's Programming Portfolio

My passion project is about creating a digital artifact for my classmates by using programming (python).

My idea is too create a piece of programming each lesson which are designed to help answer questions or display data.

To create it, I will use in which I will design repls that can be used for school. For example about academic things like house points, average of end of year ((half)term) grades or subject choices, but also about basic things like favorite subject or number of siblings in each class.


My first design - House Points

Today I created my first programming repl about the Passion Project on The program I made is designed to show how many points each of the three girls houses (Southfield, Tudor & Rupert Brooke) owned, the overall score and average.

variable definitions
gp = good points
bp = bad points
tp = total points
sou = Southfield
rup = Rupert Brooke
tud = Tudor

The program starts by asking the person to enter her number of of merits and credits and the number of minors and impositions by using input. The int tells the program that what will be entered is a number. This is done 25 times (around the number of students in each house) using iteration(loops). Because it is inconvenient and takes a long time to write twenty-five numbers [1,2,3,...], I used range(25). In the next line (number 4, 10, 16) is a variable called tp_(first three letters of the house's name) in which the number of good points is subtracting the number of bad points which gives us the total. In the end of the program the total number of points of each house is displayed, together with the overall score and the houses average.

My second design - GCSE Choice

Today I created my second programming repl about the Passion Project on The program I made is designed to ask a person about his or her GCSE choices so that the person has to enter a humanity, language and two other options.

variable definitions
hum = humanities
lan = languages
op1 = option 1
op2 = option 2
ans = answer

The program starts by telling the person to later enter the GCSE choices which the person wants to chose for the next two years. There are four variables noted next, hum, lan, op1 and op2 where you can enter the subject you want by using input. Each one stands for one of the GCSE groups and has the possible subjects listed. Next the program asks the person if he or she is sure about his or her chosen subjects. By using selection, there are then two possible ways: either saying yes (agreeing with the chosen subjects) or saying no. If you say yes, a friendly message is shown. If the answer is no (because if you aren't happy with your chosen ones or accidentally entered the wrong one), the whole process is repeated, so that the person has the opportunity to choose subjects again. Then the program finishes with the same message as it is shown if you say yes in the question before.

My third design - Grades

Today I created my third programming repl about the Passion Project on The program I made is designed to ask a person about his or her grades so that the person knows what their average is and if their grades are better than the ones from the last report.

variable definitions
q_ = variable belongs to class F-Q
r_ = variable belongs to class F-r
s_ = variable belongs to class F-S
t_ = variable belongs to class F-T

The program begins with the program telling the person about what the program is about and that the grades have to be entered in numbers (not letters). First class F-Q is going to enter their grades. I used iteration so that the questions of the different subjects (each subject is a different variable) are asked 12 times, which is about the average of how many people in each class are. After each student of the class answered the average grade of all different subjects' grades is calculated and revealed. This progress happens another three times, each for one of the other three classes in F-Block. After all students in F-Block entered their grades, the program shows the average of all classes.

My fourth design - Fav. subjects

Today I created my fourth programming repl about the Passion Project on The program I made is designed to ask a person about his or her favorite subject, trying to find this out by asking questions where you have to answer yes or no.

variable definitions
sub = subject
lan = language

The program starts by asking which of two subjects categories the person likes more. If the answer is yes (likes languages more) another question pops up using Selection (if and else) making the person choose which kind of language he or she prefers so that a final subject can be displayed. If the answer is humanities and not languages, the other subjects are shown from which the person has to decide on one. If none of the subjects appeal to the person the next question which is about designing pops up. If neither of the designing subjects nor any of the science subjects appeal to the person, the program displays Drama, Sport and Music as the final options (I put them there because they didn't fit into the categories (languages, humanities, sciences, "designings") from which the person (is very likely) to know which of the three he or she likes the most. All over, the fourth program about a person's favourite subject I made, is mostly about using Selection (if and else (elif).

My fifth design - Happy B-Day

Today I created my fifth programming repl about the Passion Project on The program I made is designed to ask a person about his or her birthday, trying to find out if the person's birthday is today, how old the person is, if he or she has siblings: who is older? and in which year the person was born.

variable definitions
b_day = birthday
b_year = birth day
y_age = your age
s_age = sibling's age
sib = sibling
av = average

The program starts by explaining what it is about and how you have to write the different dates (in the 00.00 format).

After this two variables pop up, one about today's date and one about your birthday's date. If the two dates aren't the same, the text "Today is a regular day" pops up, but if both variables equal the same (date, e.g. 16.6 and 16.06) the message "Today is your birthday! Congratulations!" is displayed.

Next the program asks the person about his or her age so that it can calculate in which year the person was born. After this it asks if the person has any siblings. If the answer is negative, the program displays the message "What a pity! :(" , but if the answer is positive the program asks how old the sibling is. With knowing both the ages of the person and his or her sibling, the program than uses the information to figure out who of the two is older, using the > and < sign, and then displaying the results in a sentence ("You are the younger one!" or "That means you are the older one!"). If both ages are the same (==), the text "You two are twins!" pops up. As the last thing of the program, the last message is what the average age of both people is (e.g. (14+8)/2= 11).

This was my Passion Project!

Review: It was about programming, using variables, input, selection and iteration. I designed 5 different programs (repls) with the topics: House points, GCSE choices, Grades, Favorite Subject and Birthday together with a screen cast.