Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
THIS PROGRAM IS TO ASK A DATE & ALSO ASK FOR DAYS TO BE ADDED TO PRODUCE
#include #include struct date { int dd; int yy; int mm; };void main() { clrscr(); int day; date dot; cout<<" enter the date (dd/mm/yy) "; cin>>dot.dd>>dot.mm>>dot.yy; cout<<" input the days to be added "; cin>>day; dot.dd +=day; if (dot.mm ==1 || dot.mm ==3 || dot.mm ==5 || dot.mm ==7 || dot.mm ==8 || dot.mm ==10 || dot.mm ==12) { if(dot.dd>=31) { dot.dd-=31; dot.mm++; } } else if(dot.mm ==4 || dot.mm ==6 || dot.mm ==9 || dot.mm ==11) { if(dot.dd>=30) { dot.dd-=30; dot.mm++; } } else if (dot.mm ==2 && dot.yy%4==0) { dot.dd-=29; dot.mm++; } else { dot.dd-=28; dot.mm++; } if (dot.mm>12) { dot.mm-=12; dot.yy++; } cout<<" new date:- "< getch(); }
What is conversion constructor? explain it .
A container class is a class which is used to hold objects in external storage and memory. A container class work as a generic holder. A container class contains a predefined behav
implement two stacks in one array A[1...n] in such a way that neither stack overflows unless the total number of elements in both stacks together is n. For this you need to produce
enter height of the shape: 1 3 5 3 1 3 5 7 5 3 5 7 9 7 5 3 5 7 5 3 1 3 5 3 1
Aim: To implement a program to create, update & display account & admin record of person using display account & admin records of person using virtual base class.. Code:
C++ improves on many of C's features and provides object-oriented programming capabilities used for software production, quality and reusability. C++ was developed by Bjarne Strons
Object Oriented Programming Paradigm: For OOP, Paradigm is a standard set. The OOP will help to develop software in modules, which will be integrated later as a full packag
I have to make a program that allow the user input 10 numbers between 10 and 100 and if the number input is the same than the last number, should appear an error message. I have th
Returning References from Functions Just as in passing the parameters by reference, returning a reference also doesn't return back a copy of the variable , instead an alias is
Ask question #Minimum 100 write an algorithm to calculate simple interest and compound interestwords accepted#
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!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd