Skip to content

The final exam solutions for the "Introduction to Programming" course, offered in the 1st semester of the 2020 academic year at the University of Piraeus, Department of Informatics.

License

Notifications You must be signed in to change notification settings

thkox/uni_2020-python-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction to Programming (2020) - Final Exam Solutions

Project Overview

The final exam solutions for the "Introduction to Programming" course, offered in the 1st semester of the 2020 academic year at the University of Piraeus, Department of Informatics. These exercises were designed to test students' proficiency in Python and are suitable for anyone looking to practice programming with real-world tasks.

Course Information

Technologies Used

  • Python

Exercises

Exercise 1: Square Array Manipulation

Description:
Write a Python code that takes the dimension of a square and creates the corresponding array using lists. The code then finds the total number of positions and randomly fills half of them with ones. The goal is to count how many groups of four ones there are horizontally, vertically, and diagonally. The program repeats 100 times (for the same dimension) and returns the average number of groups.

Exercise 3: KINO Number Statistics Using OPAP API

Description:
Use the OPAP API (https://www.opap.gr/web-services) from Python to display the statistics of the numbers that win the first drawing of the day for KINO for the current month.

Exercise 9: ASCII Odd Number Conversion and Statistics

Description:
Write a Python code that takes an ASCII text file as input and converts each character to the corresponding ASCII number, keeping only the odd numbers. Display the occurrence statistics of each letter using “bars” with the character *, where each * corresponds to 1%.

Exercise 12: ASCII Mirror Characters

Description:
Write a Python code that takes an ASCII text file as input and converts each character to its "mirror" ASCII character. Mirror characters are those whose sum is 255. Display the mirrored text to the user in reverse character order.

Using This Repository

This repository is structured to contain the Python scripts corresponding to each exercise. Each script can be run independently, and they are organized by their exercise numbers. Ensure you have Python installed on your system to run these scripts.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Known Issues

The OPAP API that I used is deprecated.

About

The final exam solutions for the "Introduction to Programming" course, offered in the 1st semester of the 2020 academic year at the University of Piraeus, Department of Informatics.

Topics

Resources

License

Stars

Watchers

Forks

Languages