Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thkox/uni_2020-python-scripts

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.
https://github.com/thkox/uni_2020-python-scripts

1st-semester 2020 api department-of-informatics python txt university-of-piraeus university-project

Last synced: 4 days ago
JSON representation

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.

Awesome Lists containing this project

README

        

# 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
- **Institution:** [University of Piraeus](https://www.unipi.gr/en/)
- **Department:** [Department of Informatics](https://cs.unipi.gr/en/)
- **Course:** Introduction to Programming (2020)
- **Semester:** 1st

## 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](./LICENSE) file for details.

## Known Issues
The OPAP API that I used is deprecated.