Home / Expert Answers / Computer Science / 1-1-create-an-array-that-contains-the-following-cars-in-your-neighbors-39-garage-bmw-m4-pa274

(Solved): \( 1.1 \) Create an array that contains the following cars in your neighbors' garage: BMW M4, ...



\( 1.1 \)
Create an array that contains the following cars in your neighbors garage: BMW M4, Nissan Versa, Honda Civic, Hyun

the front page (we are not concerned about how the date is displayed on the front page).
Using your knowledge of functions, a

\( 2.2 \)
Using a for loop, write a JavaScript program that can be used to convert this string to uppercase or capital letter

You should validate all of the following form fields using Regular Expressions:
- First Name
- Last Name
- Address
- Gender
-

\( 3.2 \)
Extend your validation to include exception handling (Try, Catch, Finally and Throw). All the validation and errors

\( 1.1 \) Create an array that contains the following cars in your neighbors' garage: BMW M4, Nissan Versa, Honda Civic, Hyundai Elantra Hybrid, Nissan Magnite, Hyundai Alcazar. Using your knowledge of JavaScript and HTML, output the array elements in Table Format as shown below. Your program should use a Loop of your choice. \( 1.2 \) [10] Using the pop() method delete the last array element and display the resulting array [ 2\( ] \) \( 1.3 \) Using an array method to add a new element at the front of the array, thus making BMW M4 take index [1]. The new element to add is Mercedes Benz S-Class[0] [3] QUESTION 2 25 MARKS \( 2.1 \) You just created a website for a client, and they want you to add a page that will allow the client to change the date when the website was last updated. This date would then be displayed on the front page (we are not concerned about how the date is displayed on the front page). Using your knowledge of functions, arrays and JavaScript date objects, create a JavaScript program that gets the date from the user using a form as below and send it to a function called dateUpdate(). For testing purposes, you are to use an alert to see if your function is working. Your program should get the date from the user in the format YYYY-MM-DD. On clicking the Send Update Date button, the function should display the output in an alert box as shown below. [20] Update Form: Update Date When was this website updated?: Output: This page says This page was last updated: \( 25 / \mathrm{Jul} / 22 \) \( 2.2 \) Using a for loop, write a JavaScript program that can be used to convert this string to uppercase or capital letters "i love javascript programming with all my heart" and print the results 5 times. [5] QUESTION 3 50 MARKS \( 3.1 \) Global IT a web development company you work for as a junior web developer has been given a web development project by Sunnyside Bowling club to automate their websites so that new members can signup on their new website. You have been tasked to create the Sign-up form as showed in Figure 1 below, you are required to use the following languages to develop this signup form (HTML, CSS \& JavaScript). You can create vour own Ioron for Sunnvside Bowlina Welcome To Pretoria Sunnyside Bowling Club You should validate all of the following form fields using Regular Expressions: - First Name - Last Name - Address - Gender - Email ID - Mobile - Location Under location you are required to use the following residential areas - Boardwalk - Brooklyn - Lynnwood - Sunnyside After a new member has submitted a form with incomplete information an alert box should popup notifying the user the missing information as shown below: \( 3.2 \) Extend your validation to include exception handling (Try, Catch, Finally and Throw). All the validation and errors should be handled by the Try...Catch blocks in your code. [10] \( 3.3 \) Extend your program and create a function called cookieFunction() that creates a cookie named RegCookie which expires on the \( 1^{\text {st }} \) day of the following month. This cookie is created once the signup button is clicked and should store the First Name, Email Address and Mobile. Create another function that reads the RegCookie to check if the cookie is actually being set by the cookieFunction() function. [10]


We have an Answer from Expert

View Expert Answer

Expert Answer


ACCORDING TO CHEGG GUIDELINES, WE ARE ONLY ALLOWED TO SOLVE ONE QUESTION AT A TIME AND WE CAN NOT VIOLATE THE GUIDELINES SO SORRY FOR THE INCONVENIENCE QUESTION 1) 1)THE CODE FOR ALL THE PARTS IN HTML(WITH JAVASCRIPT)

We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe