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

If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

606


What is the difference between the indirection operator and the address of oper-ator?

616


Comment on assignment operator in c++.

728


What is difference between class and structure in c++?

629


What are special characters c++?

576






Which is better c++ or java?

577


Tell me can a pure virtual function have an implementation?

564


What is polymorphism and its type in c++?

601


what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?

1759


Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.

1723


Is it possible for a member function to use delete this?

582


Difference between pointer to constant vs. Pointer constant

600


How is computer programming useful in real life?

606


What are dynamic type checking?

624


can any one help to find a specific string between html tags which is changed to a sting.. weather.html looks (for location) is somewhere #include #include #include using namespace std; string find_field(string myPage,string); int main (void) { string page, line, location, temperature; ifstream inputFile("weather.xml"); while(getline(inputFile, line)) { page.append(line); line.erase(); } // Now page is a string that contains the whole xml page // Here you need to write something that finds and // extracts location and temperature from the XML // data in the string page and stores them in // the strings location and temperature respectively location=find_field(page,"location"); temperature=find_field(page,"temp_c"); cout << "Location: "<

1649