Skip to content

H4CK10uS01/Basic-Algorithms-and-Flowcharts-in-Python3

Repository files navigation

Project: Algorithms and Flowcharts

Description

This repository contains the implementation of various algorithms in pseudocode and their corresponding flowcharts. Each algorithm is designed to solve specific problems using fundamental control structures such as conditions, loops, and mathematical operations.

Contents

This project includes the following exercises:

1️⃣ Determine the largest of two distinct values

Description: An algorithm that prompts for two integer numbers and determines which one is larger.

  • Pseudocode: Implemented in PSeInt.
  • Flowchart: Graphical representation of the comparison logic.

2️⃣ Check if an integer is divisible by 3

Description: An algorithm that prompts for an integer number and verifies whether it is divisible by 3 using the modulo operation.

  • Pseudocode: Implemented in PSeInt.
  • Flowchart: Representation of the decision-making process.

3️⃣ Calculate all powers of a number from a¹ to a^k

Description: The user inputs a base a and a maximum exponent k. The program calculates all powers of a up to a^k.

  • Pseudocode: Implemented in PSeInt.
  • Flowchart: Representation of the iteration loop.

4️⃣ Calculation of item prices with and without VAT

Description: A menu-driven program that allows entering the prices of three items and calculating the total excluding VAT, VAT at 16%, and the total cost including VAT.

  • Pseudocode: Implemented in PSeInt.
  • Flowchart: Representation of the calculation process and menu-driven decision-making.

Requirements

To run and visualize the flowcharts in this project, it is recommended to use:

  • PSeInt (To execute the pseudocode).
  • Graphviz (To generate flowcharts in Python).

Installation

📌 Installation on Kali Linux using APT

sudo apt update
sudo apt full-upgrade -y
sudo apt install graphviz python3-graphviz -y
python3 python_grafico.py

📌 Installation using pip3 on any Linux distribution

If you prefer to use pip3, install Graphviz and its Python library with:

pip3 install graphviz

License

You are free to use it for educational and academic purposes.


🛠 Developed by: H4Ck10uS01
📌 Contact: github.com/H4Ck10uS01

About

Basic university exercises coding with Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages