Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 1.93 KB

README.md

File metadata and controls

44 lines (36 loc) · 1.93 KB

squarePerimeter

A program that calculates the perimeter of a square based on user input. It uses the formula x = l * 4, where x is the perimeter and l is the length of the square's side. The program prompts the user to enter the side length, performs the calculation, and displays the result. It supports multiple calculations through a loop and returns a no-error signal to the operating system.


pic

FilesFeaturesHow To Use

Files

  • src: the file that implements de solution.
  • others: algorithm flowchart

Features

The main features of the application include:

  • User Input: It prompts the user to enter the value of the side length of the square.
  • Calculation: It calculates the perimeter of the square using the formula x = l * 4, where x is the perimeter and l is the side length.
  • Looping: It allows multiple calculations by repeating the calculation process until a certain condition is met.
  • Output: It displays the calculated perimeter value to the user.
  • Error Handling: It returns a no-error signal to the operating system upon completion.
  • Assembly Language: It is written in assembly language, specifically targeting a specific architecture.

How To Use

To clone and run this application, you'll need Git and a x86 emulator or simulator installed on your computer. Or a RaspberryPi in case you have one. From your command line:

# Clone this repository
$ git clone https://github.com/bl33h/squarePerimeter

# Open the folder
$ cd src

# Assemble the app
$ as -o CalculoPerimetroCuadrados.o CalculoPerimetroCuadrados.s
$ ld -o CalculoPerimetroCuadrados CalculoPerimetroCuadrados.o

# Run the app
$ ./CalculoPerimetroCuadrados