Web Technology 511 Assignment
Web Technology 511 Assignment
richfield.ac.za
ASSIGNMENT INSTRUCTIONS
DECLARATION OF ORIGINALITY:
I hereby declare that this assignment is my own work and has not been copied from any other source except where due
acknowledgment is made. I affirm that all sources used have been properly cited and that this submission complies with
the institution’s policies on academic integrity and plagiarism.
Richfield Graduate Institute of Technology (Pty) Ltd is registered with the Department of Higher Education & Training as a Private Higher Education Institution under the Higher
Education Act, 1997, Registration Certificate No. 2000/HE07/008.
Question 1: 30 Marks
Design an interactive landing page for a fictional product, "EcoSmart Water Bottle," with
the following features:
1. Header:
▪ Home
▪ Features
▪ Pricing
▪ Contact Us
2. Main Section:
o Clicking the button should open a modal (pop-up) where users can select
their preferred product color (using a dropdown menu or radio buttons).
3. Interactive Component:
o Implement a dynamic price calculator that updates the total price in real-
time based on the user's selected color and any additional features (e.g.,
custom engravings or packaging).
4. Footer:
o Include a "Contact Us" form with fields for Name, Email, and Message.
o Add a checkbox for "Terms and Conditions" that must be checked before
form submission.
Additional Requirements:
1|Pa g e
• Ensure the design is visually appealing and responsive for mobile and tablet
devices.
• Bonus Feature: Add a sticky navbar that remains fixed at the top of the page as the
user scrolls.
Note: Ensure to include both the code and the corresponding output for all questions
2|Pa g e
Question 2: 30 Marks
Using your HTML, CSS, and JavaScript skills, create a web application to display the 2025
election results for the specified political parties. The application should feature a pie chart
with clearly labeled, color-coded sections representing DAD (45%), PPP (5%), CCCC
(27%), and MCD (23%). Ensure each segment is distinguishable with unique colors.
Note: Ensure to include both the code and the corresponding output for all questions
Question 3: 30 Marks
1. API Integration:
o Display these to-dos in an unordered list on the page, showing the title and
whether they are completed or not (use checkboxes to represent completion
status).
2. Event Handling:
3|Pa g e
o Add a feature that allows the user to add new to-dos. This new to-do should
be displayed in the list immediately after the user adds it (but it doesn't need
to persist after the page reloads).
3. Task Removal:
o Add a delete button next to each task that removes it from the list when
clicked. The task should be deleted from both the UI and the API (mock API,
so you won't need to actually modify the backend, but simulate it).
4. Additional Features:
Note: Ensure to include both the code and the corresponding output for all
questions
4|Pa g e
Additional Instructions:
• Ensure that the page dynamically updates in response to user actions, and that no
page reload is necessary when tasks are added or removed.
• Bonus: If you know how to, add a local storage feature so that the to-do list persists
across page reloads.
5|Pa g e