Sunday
March 29, 2015

Homework Help: c++ programming

Posted by hafsa on Tuesday, March 20, 2012 at 4:03am.

Write a program that determines the day number (1 to 366) in a year for a date that is provided as input data. As an example, January 1, 2011 is day 1. December 31, 2010 is a day 365. December 31, 2012 is day 366, since 2012 is a leap year. A year is a leap year if it is divisible by four, except that any year divisible by 100 is a leap year only if it is divisible 400. Your program should accept the month, day and year as integers.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

Logic - Draw a flowchart for a program that reads a date in an 8-digit sequence...
Finance - On January 1, 2011 you bought a two-year U.S. government bond with a ...
java programming - Your boss at Ruritania Weather Center (RWC) has asked you to ...
accounting - I have figured this out I just want to make sure I am correct in my...
programming - Temp Employer wants a program that will allow the company’s clerk ...
c++ programming - Solve the following problem. Apply all the steps i.e ...
Finance - It's January 1, 2011. Company XYZ wants to build a teddy bear factory...
computer programming - Mr. Dacara owns 20 apartment buildings. Each building ...
Statistics - Each day a local radio station randomly draws a date (without ...
Algebra 2 - Question is about Step Functions:(between" " are all floor functions...

Members