logo Use CA10RAM to get 10%* Discount.
Order Nowlogo

One of the hardest parts of programming is dealing with the users.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

One of the hardest parts of programming is dealing with the users. They do erratic things despite all your best warnings and error messages.

One of the areas where users are the worst - dates. For this assignment I want you to write a rather incomplete program. All you have to do is ask the user what month, day and year they want to leave on.

The challenge is that you must make sure that is indeed a real date. Use this old poem as your guide: Thirty days hath September, April, June, and November; All the rest have thirty-one, Save February, with twenty-eight days clear, And twenty-nine each leap year. There is one catch - you must be prepared for a leap year. Leap year is a year when an extra day is added to February to keep the whole sunshine-during-the-day thing in wack.

If a year is a leap year, there will be a February 29th! How do you know if it is a leap year? Test it as follows: Every year that is evenly divisible by four is a leap year Except- if it can be evenly divided by 100, it is NOT a leap year Unless the year is evenly divisible by 400, then it is a leap year. All you need to tell the user – date does not exist or valid date.

 

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Husnain SaeedComputer science

769 Answers

Hire Me
expert
Atharva PatilComputer science

641 Answers

Hire Me
expert
Chrisantus MakokhaComputer science

973 Answers

Hire Me
expert
AyooluwaEducation

965 Answers

Hire Me

Get Free Quote!

409 Experts Online