Write a program that prints the day number of the year

Assignment Help C/C++ Programming
Reference no: EM132081244

Need this program in Java

Develop (using C++ or Java language) the software application described below.

Write a program that prints the day number of the year, given the date is in the form month-day-year.

For example, if the input is 1-1-09, the day number is 1; if the input is 12-25-09, the day number is 359. The program should check for a leap year. A year is a leap year if it is divisible by 4 but not divisible by 100.

For example, 1992 and 2008 are divisible by 4 but not by 100. A year that is divisible by 100 is a leap year if it is also divisible by 400.

For example 1600 and 2000 are divisible by 400, so they are leap years. However, 1800 is not a leap year because 1800 is not divisible by 400.

Reference no: EM132081244

Questions Cloud

Discuss the potential issues that a manager confronts : Discuss the potential issues that a manager confronts when he/she needs to incur more direct labor cost in order to comply with the production deadlines
Expected return on the market : One-year Treasury securities are yielding 4% and the expected return on the market is 10%.
What is the equity premium : The expected return on the market portfolio is 12%, and the relevant risk-free rate is 4.2%. What is the equity premium?
Record the transaction on the books of the debt service fund : On July 1, 2012, a current refunding took place in which $6,000,000 in new general obligation bonds were issued. Record the transaction on the books
Write a program that prints the day number of the year : Write a program that prints the day number of the year, given the date is in the form month-day-year.
Three ethical philosophical challenges to this position : Describe ethical relativism and at least three ethical philosophical challenges to this position.
Create php web pages and database for the given requirements : The median occured letter is calculated from the table. this median occured letter is used as group separator to divide the whole data into groups.
Prepare tabular summary of effects of alternative actions : Prepare a tabular summary of the effects of the alternative actions on the components of stockholders' equity, outstanding shares, and par value per share
The domestic and global marketplace : The controllable and uncontrollable factors that face marketers in both the domestic and global marketplace.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write cpp program that will allow a user to manage inventory

Write a C++ program that will allow a user to manage the inventory of a store. The inventory for a small electronics store for example will contain the information for each item in the inventory.

  Recursive function

What is the result of the following recursive function when called with mm(10)? Write out the execution trace of this call to mm(10).

  Compdateoracle is a perfect function

CompdateOracle is a perfect function without any bug to compare dates, Find out 3 issues with this random testing scheme. For each of the issue found, propose an improvement. Mention issue in one line and improvement proposal in less then 3 lines. Fi..

  Define a function named average grade

Define a function named average grade. This function returns a double and has four double arguments, testi, test2, test3, test4. The return value should be the average, or arithmetic mean of the four arguments.

  Prepare a program for a retail-mart company

Prepare a program for a company Retail-Mart.

  Write a function named xytopolar

Write a function named "XYtoPolar" that has 2 double value parameters and 2 double reference parameters that converts x,y coordinates to polar coordinates. The prototype is: void XYtoPolar(double x, double y, double* angle, double* radius);

  Lines starting from line number

Write a program in C with following operations on a file: 1. Display each line with line number. 2. Display m lines starting from line number n, where m and n are taken as input.

  Please explain in great detail using fully compileable

However please explain in great detail using fully compile-able C++ source code in the example Linear Search Algorithm and its inefficiency

  Program to decode a secret message

Write a program that decodes a message that was encoded using a random key. These keys work similar to a magic decoder wheel (where 'A' encodes to 'F', 'B' encodes to 'G', 'C' encodes to 'H', etc)except there is a random mapping from one letter to..

  Write c program to find the distance travel

Write C program to find the distance travelled at regular intervals of time given the values of 'u' and 'a'. The program should provide the flexibility to the user to select his own time intervals and repeat the calculations for different values of '..

  Create a funcion called max

Create a funcion called max().

  Prepare a program to show the fibonacci numbers

Write a C++ program to display first 20 Fibonacci numbers in descending order - Prepare a program to show the Fibonacci numbers

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd