Skip to content

eberfelipe/practicingVariables

Repository files navigation

practicingVariables

JavaScript Math Exercises

Overview

This repository contains a collection of JavaScript exercises focused on mathematical computations. These exercises are designed to enhance understanding and proficiency in using JavaScript to solve various math-related problems. The exercises cover a range of topics including geometry, finance, and algebra.

Contents

  • BMI Calculation: Calculate the Body Mass Index (BMI) using height and weight.
  • Temperature Conversion: Convert temperature from Fahrenheit to Celsius.
  • Loan Interest Calculation: Compute the interest rate applied on a loan based on the total amount paid, the initial capital, and the duration of the loan.
  • Cylinder Surface Area: Calculate the total surface area of a cylinder given its radius and height.
  • Volume of a Sphere: Determine the volume of a sphere based on its diameter.
  • COVID-19 Spread Simulation: Estimate the number of infected individuals over time using an exponential growth model.
  • Polygon Internal Angles Sum: Calculate the sum of internal angles of a polygon and determine the measure of each angle if they are all equal.
  • Quadratic Equation Solver: Compute the discriminant (Delta) of a quadratic equation using the coefficients provided.
  • Distance Between Two Points: Calculate the distance between two points in a plane using the Euclidean distance formula.

Technologies

  • JavaScript
  • Node.js

Running the Exercises

Each exercise is a standalone JavaScript program that can be executed in a Node.js environment. To run an exercise, navigate to the directory containing the script and use the following command in the terminal:

node <script_name>.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published