Find the date format is valid or not

Assignment Help Programming Languages
Reference no: EM13712119

Program- Write a program that reads a string from the keyboard and tests whether it contains a valid date.

Display the date and message that indicates whether it is valid. If it is not valid, also display a message explaining why it is not valid.

The input date will have the format mm/dd/yyyy. A valid month value mm must be from 1 to 12 (January is 1). the day value dd must be from 1 to a value that is appropriate for the given moth.

September, April, June, and November each have 30 days. February has 28 days except for the leap years when it has 29. The remaining months all have 31 days each.

A leap year is any year that is divisible by 4 but not divisible by 100 unless it is also divisible by 400.

You have to prepare a program to find the date format is valid or not. please make sure it compiles and write the full program to receive full credit.

Reference no: EM13712119

Questions Cloud

Write an isr and startup code for a system : Write an ISR and startup code for a system that lights up LED0 on the PSoC Eval1 board (assuming that a wire is connecting P1[0]) to show "Low Voltage" whenever there is a supply voltage monitor interrupt.
Create a sodoku validator : There is a problem in my operating systems class where my partner and I have to create a sodoku validator using C++. It must also be multithreaded.
Write a set of nested loops that display 10 rows : Write a set of nested loops that display 10 rows of # characters. There should be 15 # characters in each row.
What is the sprinters final speed : When starting a foot race, a 70 kg sprinter exerts an average force of 650N backward on the ground for 0.800 s. What is the sprinters final speed?
Find the date format is valid or not : Display the date and message that indicates whether it is valid. If it is not valid, also display a message explaining why it is not valid.
Find its initial acceleration if takes off vertically : A rocket has a mass of 2.00 x 10^6 kg and its engines produce a thrust of 3.50 x 10^7 N. Find its initial acceleration if takes off vertically.
Rocket clear the top of the wall : A rocket is fired at a speed of 59.0 m/s from ground level, at an angle of 35.0 ° above the horizontal. The rocket is fired toward an 11.7-m high wall, which is located 21.0 m away.
Write an application that displays a table of the pythagorea : Write an application that displays a table of the Pythagorean triples for side1, side2 and the hypotenuse, all no larger than 100.
Program to remove comments from the program : A C++ program that asks the user to enter a name of a file containing a C++ program - Program reads the file and produces an output that deletes all comments beginning with // and comments between /* */

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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