In what concerns the "exercises during classes" component of the evaluation, the exercises that you can submit for this class are:
Deadline for submission: January 18th (submit to IP's Mooshak)
You are encouraged to talk to the professors and your colleagues if you encounter difficulties.
However, any more direct help that you receive should be acknowledged in the comments of the code you submit.
After the deadline the problems will still be available on Mooshak, but the submissions will not count towards your grade.
Each practical class is worth 10% of your final component for exercices during class. Since there will be 11 classes with submissions, you can achieve maximum grade even without doing all classes.
For a problem to count you must pass all tests (that is, to have an accepted). Even if you solve all problems, the maximum on one class is 100%.
To obtain 100% it will always be enough to solve the main exercises.
With the exercises in this class you will develop the following skills:
While solving this week's exercises, make sure to take a look at lectures T21: Files and T22 and T23: Object-Oriented Programming: The Basics to navigate through the given instructions.
1) Stay in Touch, Pepe! [main]
For this exercise you will be solving the problem [IP103] Stay in Touch, Pepe!.
Read the statement, code and try to submit an Accepted solution. Don't forget to test first on your computer!
In this exercise, you are asked to create a program to keep your list of contacts (names and phone numbers) "neat and clean".
For that, you need to know how to create and read text files, and think of ways to modify them (e.g., adding or deleting a contact).
Take another look at T21: Files to recall how to work with text files.
2) Ambitious Pepe [main]
For this exercise you will be solving the problem [IP104] Ambitious Pepe.
Read the statement, code and try to submit an Accepted solution. Don't forget to test first on your computer!
Object-Oriented Programming is a slightly different programming paradigm than you're used to.
It works by creating user-defined types, such as a Gift
type or an Elf
type, each with its own attributes ("data") and methods ("functionality").
In this exercise, you are challenged to create a new data type, BankAccount
.
Each bank account needs an account_holder
and an initial balance
("data"), and has several functionalities (e.g., we can check_balance
, deposit
, or withdraw
from a given account).
Can you revisit lecture T22 and T23: Object-Oriented Programing: The Basics and create a new class BankAccount
that reflects this behaviour?
Happy coding and we hope you have enjoyed this course! 😊