Design a program to input a date from user in the form
day/month/year (e.g. 2/6/2000) and report whether it’s a
valid date or not. The program should take account of leap
years. You will need to know that a leap year is a year that
is exactly divisible by 4, except that century years are
only leap years if they are divisible by 400.

Answer Posted / jkl

Design pattern is a general repeatable solution to a
commonly occurring problem . A design pattern is not a
finished design that can be transformed directly into code.
It is a description or template for how to solve a problem
that can be used in many different situations.
Object-oriented design patterns typically show
relationships and interactions between classes or objects,
without specifying the final application classes or objects
that are involved.

Design patterns deal specifically with problems at the
level of software design.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

program explaining feautures of c++

1905


What is an undefined behavior and sequence points

555


What is lazy initialization in c++?

641


What do you mean by inheritance in c++? Explain its types.

598


How do you define a class in c++?

634






What are the advantages of using pointers in a program?

666


How do you differentiate between overloading the prefix and postfix increments?

574


What does return 0 do in c++?

567


What does I ++ mean in c++?

573


What does scope resolution operator do?

582


When is the copy constructor called?

619


What is a memory leak c++?

577


Is c++ a float?

594


What methods can be overridden in java?

656


What are the types of array in c++?

607