1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Naily [24]
3 years ago
5

Write a program that asks a user to enter a date in month day year format (for example 10 12 2016) and displays the day of the w

eek for that date, in this case, Wednesday.
Computers and Technology
1 answer:
AleksAgata [21]3 years ago
8 0

Answer and Explanation:

Using javascript:

function dayof_theweek(){

var TodayDate = window. prompt("enter today's date in the format 'year, month, day' ");

var Datenow=new date(TodayDate);

var Dayofweek=Datenow.getday();

var Days=["monday","Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"];

if(Dayofweek==indexOf(Days[Dayofweek]))

{

document.createTextnode(Days[Dayofweek]);

}

}

The program above uses a date object which uses the method getday to get the day of the week(get day returns an integer from 0 to 6).we then use a comparison operator == to test the condition that returned value Dayoftheweek is same with the index of the array Days and then print to a html document. The program may need improvements such as the fact that errors may arise when proper input isn't given, and therefore must be handled.

You might be interested in
I’m not very good at using word because this is my second time using it lol
Zolol [24]

Answer:

click outside of the square, to close the editing. then click where you need to type and it should let you type there.

5 0
3 years ago
Read 2 more answers
What should you do if a dialog box covers an area of the screen that you need to see?
KatRina [158]

Hm ok, so a dialog box is in the way it may just be as simple as zooming out if it is on a internet browser. The first picture below shows you how to do it on chrome,and the second picture on how to on Mozilla Firefox.

Both of these areas are found in the upper right corner of your internet browser, but <u>if I didn't answer this question the way you need it answered let me know!</u> I can edit and revise for whatever device or system you need me to, for a short period of time before the question locks.

Thanks!

5 0
4 years ago
Read 2 more answers
A period in which unemployment is low, business produces many goods and services, and wages are good is called ______.
ddd [48]

Answer:

A

Explanation:

4 0
3 years ago
The most accurate reading that you can take on an analog vom are when the meters pointer is at the?
marshall27 [118]
<span>The most accurate readings are near the right end of the scale, for two reasons. Any inaccuracy in your reading is a smaller part of the total voltage near full scale, and readings near the left end are likely to be off because of incorrect adjustment of the zero adjust screw. If "extreme right" means past the end of the numbers, you may be off there if the needle hits the stop. On meters with a mirror behind the needle, move to where the needle is in front of its reflection for the best reading.</span>
4 0
3 years ago
Create a function called biggestNum that returns the largest number in an array of integers. The function is passed only one par
goldenfox [79]

This is for Python

def biggestNum():

   array = []

   for i in range(8):

       number = int(input('Enter number: '))

       array.append(number)

   

   return max(array)

print(biggestNum())

5 0
3 years ago
Other questions:
  • Pls go to my account and answer my question
    11·2 answers
  • The keyboard, mouse, trackpad, microphone, light pen, and voice recognition are examples of _____ devices.
    5·1 answer
  • Which of the following typically have the highest auto insurance premiums?
    14·1 answer
  • PLEASE HELP
    8·2 answers
  • Which of the following is not hardware? Question 7 options: A) Wireless network router B) Printer C) Virus Scanner D) Flat-panel
    11·1 answer
  • Write a program that reads in the following data, all entered on one line with at least one space separating them: a) an integer
    13·1 answer
  • E-mail played a role in political upheavals in Europe because it became an important means of communication in Europe. E-mail, c
    13·1 answer
  • System.out.print();
    10·1 answer
  • --------------------------------------------------------------------------------------------------------------------------------
    8·1 answer
  • What type of program would you use to create a personal budget?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!