Skip to content

ribeiroAllison/peso-especifico

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Specific Weight Calculator for Metal Wires

alt screenshot of the program

What is it?

This project is a metal wire density calculator. It will be used by a cable factory to calculate the amount of metal required to manufacture any given cable.

How it works?

The program takes in four parameters and delivers two results based on them.

The parameters received are:

  1. The type of metal, between three options (CCAM (aluminum), Steel or Cooper)
  2. The diameter of the wire.
  3. The amount of wires of the same diameter that will be used to manufacture the cable.
  4. The total length of the finished product.

Based on these four parameters, two results will be calculated:

  1. The specific weight(measured in kg/km) of one metal wire that fits the criteria.
  2. The total metal weight that will be present in the finished cable.

Information flow and logic

This is the flow of information to get the desired outputs:

  

graph TB

  
  

B[Metal Diameter Input] -- calculate area -->

  

C((Area)) --multiply by--> A[Type of Metal input] --OR--> D(CCAM density)

  

A -- OR--> E(Cooper Density)

  

A -- OR--> F(Steal Density)

  

D --> G{Specific weight output}

  

E --> G

  

F --> G

  

G --multiply by--> H(Wire quantity input)

  

H --> I{Total metal weight output}

  

Tecnologies and concepts used:

JavaScript:

Used mainly for back-end calculations.

Main concepts used:

  1. Functions.
  2. Conditionals.
  3. Switch statements.
  4. DOM events.

HTML and CSS:

Main concepts used:

  1. Semantic elements.
  2. Responsive Design.
  3. DOM Events.

Markdown:

  • To write README file

Special Thanks to Gilbert da Silva Alves for reviewing my code. Check out his awesome work here: GitHub

Here is the deployed finished program, hope you like it!: Peso Específico

Releases

No releases published

Packages

No packages published