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.



Design a program to input a date from user in the form day/month/year (e.g. 2/6/2000) and report wh..

Answer / 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

More C++ General Interview Questions

How to declare a function pointer?

0 Answers  


What is iostream in c++ used for?

0 Answers  


What is a binary file? List the merits and demerits of the binary file usagein C++.

0 Answers  


What is a parameterized type?

1 Answers  


Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300”,”BullCart : 10”) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side

0 Answers   Telecom,






What is meant by reference variable in C++?

1 Answers  


plz send me National informatics center paper pattern

1 Answers  


Explain the uses of static class data?

0 Answers  


What is std namespace in c++?

0 Answers  


What do you mean by delegate? Can a user retain delegates?

0 Answers  


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create

0 Answers  


1.Between 100 and 999 are some numbers that have the characteristics that if you cube the individual digits and sum together you will get the same number. 2. A program that can accept as input an integer and output the equivalent of that number in words.

3 Answers  


Categories