## EXP.NO: 06 ### TITLE Develop a Webpage Using Scripting Languages with the Help of CSS ### AIM To implement an Interactive Product Price Calculator using JavaScript that dynamically calculates and displays the total bill based on product selection, quantity, and additional service options. ### ALGORITHM 1. In the external stylesheet `styles.css`, apply the following styles: * Set the background color of the body to `#f4f6f9`. * For the `.container` class, set: * `background-color` to `#ffffff` * `padding` to `20px` * Style the button element by setting: * `background-color` to `#1e3a8a` * `color` to `#ffffff` 2. Create a JavaScript function named `calculateTotal()`. 3. Inside the function, read the selected product price from the dropdown element with id `product` using its `value` attribute. 4. Read the quantity value from the input field with id `quantity` using its `value` attribute. 5. Convert both product price and quantity to numeric values. 6. Calculate the initial total by multiplying: * Product price × quantity 7. Check whether the checkbox with id `warranty` is selected using the `checked` attribute. * If selected, add 2000 to the total amount. 8. Check whether the checkbox with id `delivery` is selected using the `checked` attribute. * If selected, add 500 to the total amount. 9. Display the final total amount inside the element with id `total` using the `innerText` property. 10. When the “Calculate Total” button is clicked, the `calculateTotal()` function should execute, compute the total price, and display the result on the page. ### PROGRAM The record uses three files: `index.html`, `styles.css`, and `script.js`. 1. HTML — `index.html` ```