Your assignment is to create a Web page that welcomes the user to the page with an appropriate greeting and displays the current date and time. The requirements of your program are as follows: • Include a comment in the code that includes the assignment name, your name and the date • The web site title is Unit 5 Graded Exercise 1 • Include a header that is Welcome to Your Name's Web Page! Complete the code in a single .html file (no separate .js file) • Include a greeting that is consistent with the time of day: • "Good morning!" for times after midnight up until noon (including noon) • "Good afternoon!" for times after noon and before 5 PM • "Good evening!" for times from 5 PM until midnight (including midnight) • Following the greeting display the time and date as formatted in the examples below • The date and time will update to the current date and time each time the page is refreshed Example of the page format and layout: Welcome to Your Name's Web Page Good evening! It is 5:32 PM on Wednesday, May 22, 2019 Hint: You may find it useful to use the Date object and to create variables to store elements of the date. For example: var dateObject = new Date(); var minuteValue = dateObject.getMinutes(); var hourValue dateObject.getHours(); Note: You do not have to open a previous exercise to complete this exercise.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

I'm creating a webpage that creates an appropriate greeting using the current date and time. See the instructions.

Your assignment is to create a web page that welcomes the user to the page with an appropriate greeting and displays the current date and time. The requirements of your program are as follows:

- Include a comment in the code that includes the assignment name, your name, and the date.
- The website title is Unit 5 Graded Exercise 1.
- Include a header that is "Welcome to Your Name's Web Page!"
- Complete the code in a single .html file (no separate .js file).
- Include a greeting that is consistent with the time of day:
  - "Good morning!" for times **after midnight up until noon** (including noon)
  - "Good afternoon!" for times **after noon and before 5 PM**
  - "Good evening!" for times **from 5 PM until midnight** (including midnight)

- Following the greeting, display the time and date as formatted in the examples below.
- The date and time will update to the current date and time each time the page is refreshed.

Example of the page format and layout:

---

**Welcome to Your Name's Web Page**

Good evening! It is 5:32 PM on Wednesday, May 22, 2019

---

Hint: You may find it useful to use the Date object and to create variables to store elements of the date. For example:

```javascript
var dateObject = new Date();
var minuteValue = dateObject.getMinutes();
var hourValue = dateObject.getHours();
```

Note: You do not have to open a previous exercise to complete this exercise.
Transcribed Image Text:Your assignment is to create a web page that welcomes the user to the page with an appropriate greeting and displays the current date and time. The requirements of your program are as follows: - Include a comment in the code that includes the assignment name, your name, and the date. - The website title is Unit 5 Graded Exercise 1. - Include a header that is "Welcome to Your Name's Web Page!" - Complete the code in a single .html file (no separate .js file). - Include a greeting that is consistent with the time of day: - "Good morning!" for times **after midnight up until noon** (including noon) - "Good afternoon!" for times **after noon and before 5 PM** - "Good evening!" for times **from 5 PM until midnight** (including midnight) - Following the greeting, display the time and date as formatted in the examples below. - The date and time will update to the current date and time each time the page is refreshed. Example of the page format and layout: --- **Welcome to Your Name's Web Page** Good evening! It is 5:32 PM on Wednesday, May 22, 2019 --- Hint: You may find it useful to use the Date object and to create variables to store elements of the date. For example: ```javascript var dateObject = new Date(); var minuteValue = dateObject.getMinutes(); var hourValue = dateObject.getHours(); ``` Note: You do not have to open a previous exercise to complete this exercise.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 4 images

Blurred answer
Knowledge Booster
Elements and Tags
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education