Scientific Calculator Price in Sri Lanka

Scientific Calculator Price in Sri Lanka

Use the form below to calculate the price of a scientific calculator in Sri Lanka based on various features and specifications.

Casio Texas Instruments Sharp HP FX-991EX TI-84 Plus SHARP EL-W516XBSL HP 35s New Used Standard Advanced Graphing
function calculatePrice(){ const basePrice = parseFloat(document.getElementById(“basePrice”).value); const brand = document.getElementById(“calculatorBrand”).value; const model = document.getElementById(“calculatorModel”).value; const condition = document.getElementById(“calculatorCondition”).value; const features = document.getElementById(“additionalFeatures”).value; if(isNaN(basePrice) || basePrice <= 0){ alert("Please enter a valid base price."); return; } let totalPrice = basePrice; if(condition === "Used") { totalPrice *= 0.8; // 20% discount for used items } if(features === "Advanced") { totalPrice *= 1.2; // 20% increase for advanced models } if(features === "Graphing") { totalPrice *= 1.5; // 50% increase for graphing models } document.getElementById("totalPrice").value = totalPrice.toFixed(2); } function resetForm(){ document.getElementById("calculatorPriceForm").reset(); document.getElementById("totalPrice").value = ""; }

Leave a Reply

Your email address will not be published. Required fields are marked *