Bill Calculator
A Grocery Shop requires an application for Bill Calculation. The person generating the bill is supposed to enter the product details. Using the output tag, the total price is displayed.
Concepts covered: Web Forms 2.0 – input tag, output tag, placeholder attribute and required attribute
The following are the screenshots of the Bill Calculator
Use the Label Name and the Component Id as given. The Component Id can be given in any case (Upper case or Lower case or Mixed case).All the necessary attributes for the Components should be given.
The Component Id should be specified for each HTML Component. If the Component Id is not provided for an HTML component, marks will not be provided for that component.
All Tags, Elements and Attributes should conform to HTML5 Standards. All the fields are mandatory.
Provide the details as given in the table below.
Req. # | Req. Name | Req. Description | ||||||||||||||||||
1 | Design a Web page “Bill Calculator” with the specified fields. |
NOTE: The text highlighted in bold in the Description needs to be implemented in the code to complete the web page design.
| ||||||||||||||||||
4 | form Tag with attribute onsubmit | form Tag is already given in the code template. Do not change the code template and do the coding as per the requirements and specifications. Make sure that the onsubmit attribute in the form tag invokes the JavaScript function like "return calculateTotalPrice()". Also ensure that the “return false;” statement is the last line of the JavaScript function “calculateTotalPrice()”. |
Answer:
No comments:
Post a Comment