Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a web page called Days.html that uses prompt() to ask the user for a month number. It should then use two separate decision structures

Create a web page called Days.html that uses prompt() to ask the user for a month number. It should then use two separate decision structures (one with switch, one with if/if-else) to output the corresponding month name and the number of days in that month. For example, entering "5" should identify the month as May and indicate that it has 31 days. Notes:

You do not need to consider leap years

For full points, you must use both if (or if-else) statements AND a switch statement to complete the task. Javascript only please!

Here's what I have so far:

Days

Days

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions