Spring 2024_CS202_2
Spring 2024_CS202_2
02 Total Marks: 20
Semester: Spring 2024 Week (6-11)
CS202: Fundamentals of Front-End Topics: (61 to 138)
Development Due Date: June-24-2024
Instructions:
Please read the following instructions carefully before submitting an assignment. It should be clear that your
assignment will not get any credit if:
Note:
1) You have to just upload a .doc and .docx file which will have the code of HTML and JavaScript and
Screenshot of the Output. Assignment in any other format (extension) will not be accepted and will be
awarded with zero marks.
Objectives:
The objectives of this assignment are:
● To learn and practice the basic JavaScript.
● Use of JavaScript functions, events, loops, and conditional statement.
Note:
Guidelines:
▪ Code should be properly indented.
▪ You can use the following tools/software:
o Notepad or Adobe Dreamweaver
For any query about the assignment, contact at [email protected].
Assignment Statement:
You are required to build a simple web application that allows users to enter their grades for multiple subjects.
The application will calculate the average grade and determine if the user passed or failed based on the average
grade.
To build this application you are required to use concepts of JavaScript along with HTML.
You are required to perform following steps.
1. Create an HTML form to get grades from the user for 4 subjects.
2. Add a "Calculate Average" button in the HTML form that triggers a JavaScript function.
3. Write a JavaScript function that uses loops and if-else statements to calculate the average grade and
determine if the user passed or failed. The passing criteria is 50 percent marks in average.
4. Use your own name and VUID to print the result in both cases (pass or fail).
5. Copy your HTML and JavaScript code from the editor and paste it into a Word document. Also, attach a
screenshot of the output in the Word document.
Solution Output:
BEST OF LUCK! 😊