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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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