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

  How many time is loop body of while statement executed

How many time is the loop body of the while statement executed? a) once, b) never, c) 49 times, d) 50 times, e) until a number 50 or larger is entered

  Write program to read ten numbers-display distinct numbers

Write a program that reads in ten numbers and displays distinct numbers (i.e., if a number appears multiple times, it is displayed only once).

  Program-function definition which has three int arguments

Your program will include a function definition that has three int arguments consisting of the whole dollar portion of the price and the two integers that make up the fraction part.

  Develop the interactive calculator in bash shell script

Develop the interactive calculator completely in bash shell script (Linux programming). This calculator program must have the following features: Entry of expression acceptable to expr

  Write program which asks user for the url of a pdf file

Write a program which asks the user for the URL of a PDF file, checks that the URL starts with "http://" and ends with "pdf" or "PDF", downloads it with wget, and displays it with display.

  Invoke method to tell air conditioner object to turn on

Assume there is a reference variable myAC to an object of this class, which has already been created. Using the reference variable, invoke a method to tell the air conditioner object to turn on.

  Create program in visual studio-produce summary of ammounts

Create the program in Visual Studio, C#, 3.5 .Net that will produce the summary of amounts due for Pat's Auto Repair Shop. Display splash screen first.

  Create application consisted of three classes

Create an application comprised of three classes. The first class called Crayon represents one crayon of a particular color and length (height).

  Develop project to calculate checking account balance

Develop project to calculate your checking account balance. Form: Include radio buttons to indicate the type of transaction: deposit, check, or service charge.

  Find the negation of each of statements

Use de Morgans law to find the negation of each of the subsequent statements - kwame will take a job in industry or go to graduate school.

  Determine the output of the given program what will happen

question what is the output of the following program?class exception2 public static void mainstring args

  Wysiwyg editors can be used to learn html

What about fact that WYSIWYG editors can be utilized to learn HTML? As you can usually jump back and forth from their own image.

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