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

Can a class be static in c++?

812


How are Structure passing and returning implemented by the compiler?

844


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

849


Explain the use of virtual destructor?

828


What does it mean to declare a member variable as static?

811


What is type of 'this' pointer?

805


Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

792


Explain how to initialize a const data member.

834


What is a float in c++?

743


What is class definition in c++ ?

821


What is abstraction in c++?

938


Can a constructor return a value?

883


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

833


What is pure virtual function? Or what is abstract class?

811


Can I learn c++ without learning c?

761