Skip to content

Commit

Permalink
fix: converted ProperCase to lowerCamelCase;
Browse files Browse the repository at this point in the history
  • Loading branch information
“A1-4U2T1NN” committed Oct 12, 2024
1 parent f3dd6da commit db31cf1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lesson_06/expression/src/expression_calculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ export class ExpressionCalculator {
/** Returns the calculation of ((a + b) * c) / d^e */
calculate(a: number, b: number, c: number, d: number, e: number): number {
// Implement your code here to return the correct value.
const Sum = this.add(a, b)
const sum = this.add(a, b)
/* First step of PEMDAS in equation (Parenthesis)*/
const Product = this.multiply(Sum, c)
const product = this.multiply(Sum, c)
/* Second step of PEMDAS in equation (Parenthesis)*/
const Power = Math.pow(d, e)
const power = Math.pow(d, e)
/* Third step of PEMDAS in equation (Exponent)*/
const Quotient = this.divide(Product, Power)
const quotient = this.divide(Product, Power)
/* Fourth and final step of PEMDAS in equation [Multiplication/Division(left to right)]*/
const Result = Quotient
const result = quotient
/* Defines final result */
return Result;
return result;
/* prints final result*/
}

Expand Down

0 comments on commit db31cf1

Please sign in to comment.