Write a function called dateToDays that takes three parameters - a month string such as Sep, a day number such as 18, and a year number such as 1962 - and returns the number of days from Jan 1 1900 to the date.

What will be an ideal response?


The trick to this is knowing how many days are in each month and handling leap years properly.
While there are formulas for this, an easy way to find this information might be to use the GNU
cal utility to get the number of days in a particular month (the last value of the output).

Computer Science & Information Technology

You might also like to view...

When an error occurs in a formula, a(n) ________ button appears next to the cell

A) function checking B) circular reference C) function diagnostic D) error checking

Computer Science & Information Technology

When selecting a graphic, ensure that it is appropriate to the topic, type of document, and audience

Indicate whether the statement is true or false

Computer Science & Information Technology

A ________ provides a group of related commands for Windows applications.

a) separator bar b) hot key c) menu d) margin indicator bar

Computer Science & Information Technology

A ____ program can take control of your browser. 

A. keylogger B. hijacker C. spyware D. sniffer

Computer Science & Information Technology