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:
    1. Health Assistant: Calculates BMI and gives health advice.
    2. Finance Tracker: Calculates savings/expenses and gives budget warnings.
    3. 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, and role.
  • Include a Method (function inside the object) called welcomeMessage that 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.cookie to remember the user's "Theme Preference" (e.g., Dark Mode or Light Mode) even after the page is refreshed.
  • Window Object: Use window.onload to trigger a "Welcome" sequence when the app starts.

D. Control Statements & Logic (Week 6)

  • Use if-else or switch statements 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