Create another HTML File with
YourNameReqgNoJavaScript.html (Add this step screen shot too). Design the form and show the output as shown below (using table, text fields, buttons, radio buttons and formatting tags). Also define External CSS file and apply CSS to all the Text Fields, Buttons and Lables.
Ask User to enter Name, Reg No, Obtain and Total Marks. When User Presses the Calculate Grade Button, then Percentage should be computed and displayed in Text field against percentage label. Finally, based on the Percentage compute the Grade and show in the Grade Text field. Using
JavaScript, write code to calculate the percentage and when user clicks the Submit button then following output should be printed in Browser. When User Clicks the Clear button all the field text should be cleared.
Also, include the following Checks/Validations
- Student Name only contain Alphabets, Numeric value can not be entered in this filed
- Student Name must be atleast 5 Characters in length
- Marks obt and Total Marks should be Numeric Values, String/Text value can not be entered to this text fields
- Marks obt and Total Marks should not be Negative or Zero
- Reg No must be maximum of 12 Characters (12-ARID-9999) and minimum of 9 Characters (09-ARID-1)
Hint:
For Percentage >=80% Grade Will be A+
For Percentage<80% and="" percentage =""> 70% Grade Will be A80% >
For Percentage<70% and="" percentage =""> 65% Grade Will be B70% >
For Percentage<65% and="" percentage =""> 60% Grade Will be C65% >
F-Grade, otherwise
Extracted text: Student Name Saif UR Rehman 18-ARID-789 Reg No 380 Marks Obt (Last Se,ester) Total Marks 500 76% Percentage A Grade Calculate Grade Clear