From a38bc66cec648da76fb1c2eea02eac3e0c4b2133 Mon Sep 17 00:00:00 2001 From: Neha Kanwar Date: Mon, 27 May 2024 21:46:35 +0530 Subject: [PATCH] Corrected the formulas --- Calculators/CGPA-Percentage-Calculator/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Calculators/CGPA-Percentage-Calculator/script.js b/Calculators/CGPA-Percentage-Calculator/script.js index e6d429200..f1985a215 100644 --- a/Calculators/CGPA-Percentage-Calculator/script.js +++ b/Calculators/CGPA-Percentage-Calculator/script.js @@ -1,10 +1,10 @@ // functions to convert values function cgpaToPercentage(cgpa) { - return cgpa * 7.1 + 11 + return cgpa * 9.5 } function percentageToCGPA(percentage) { - return (percentage - 11) / 7.1 + return percentage / 9.5 } // Function to handle conversion and display values