We read your photo as:
Create a 'Smart Personal Assistant' web application with a chosen STEM theme (Health, Finance, or Academic), implementing JavaScript objects, form validation (including regex for email), and cookie st
Computer Science
ScanSolve AI Answer
Here is a summary of the project requirements:
Project Title: The Smart Personal Assistant (BPA)
Project Overview:
- You are to act as a Junior Software Developer to create a functional 'Smart Personal Assistant' web application.
- The app must interact with the user, store preferences, and perform calculations based on their input.
- Choose one of the following STEM themes for your assistant:
- Health Assistant: Calculates BMI and gives health advice.
- Finance Tracker: Calculates savings/expenses and gives budget warnings.
- Academic Tutor: Calculates average scores and gives grade remarks.
Technical Requirements:
A. JavaScript Objects (Week 2)
- Represent a user as an Object with properties like
firstName,lastName,age, androle. - Include a Method (function inside the object) called
welcomeMessagethat returns a personalized welcome message.
B. Form Validation & Security (Week 3)
- Create a "Sign-In" or "Data Entry" section.
- Empty Field Check: Ensure no fields are left empty.
- Email Validation: Use a Regular Expression (Regex) to ensure the email format is correct.
- Alerts: Use
alert()to notify the user of successful submission.
C. Browser Environment & Cookies (Week 3 & 4)
- Cookies: Use
document.cookieto remember the user's "Theme Preference" (e.g., Dark Mode or Light Mode) even after the page is refreshed. - Window Object: Use
window.onloadto trigger a "Welcome" sequence when the app starts.
D. Control Statements & Logic (Week 6)
- Use
if-elseorswitchstatements to make decisions. - Condition 1: Based on a numerical input (e.g., Score, BMI, or Expense), display a specific remark (e.g., "Excellent", "Overweight", or "Over Budget").
- Condition 2: Change the UI color or text based on the result.
Was this helpful?
Still stuck on this one?
Ask a follow-up, and the answer starts from this question.
Got a different question?Ask your own question
More Computer Science Questions
QPlease answer the following questions about computer science, HTML, and expert systems: [list of…QBASIC 7 Computing Homework (Practicals) With the aid of a computer or a smartphone, explore the…QIs Artificial Intelligence (AI) a web browser?QDifferentiate between hackers and spammers; state one importance of add-ins in MS Excel; explain…QSubject: Digital Technologies Class: JSS 3 INstruction: Answer All question (note: Do not use Al, if…
Browse by topic:JavaScript