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 USER TO INPUT TWO DATE & PRODUCE A NEW DATE */#include #include struct date { int dd; int yy; int mm; };date add(date d1,date d2) { date temp; temp.dd=d1.dd+d2.dd; temp.mm=d1.mm+d2.mm; temp.yy=d1.yy+d2.yy; if(temp.dd>=30) { temp.dd-=30; temp.mm++; } else if(temp.dd>=31) { temp.dd-=31; temp.mm++; } else if(temp.dd>=28) { temp.dd-=28; temp.mm++; } if(temp.mm>=12) { temp.mm-=12; temp.yy++; } return temp; }void main() { clrscr(); date d1,d2,ans; cout<<" enter the 1st date (dd/mm/yyyy) "; cin>>d1.dd; cin>>d1.mm; cin>>d1.yy; cout<<" enter the 2nd date (dd/mm/yyyy) "; cin>>d2.dd; cin>>d2.mm; cin>>d2.yy; ans=add(d1,d2); cout<<" new date:-"< }
Can I explicitly call a destructor if I've allocated my object with new?
Write a program that reads a line of characters from the user and displays that entire line after converting any uppercase characters to lowercase also change any lowercase charact
write a prgm to find minimum total number of shelves including the intial one required for loading process
Hello. I need a solution for this assignment. It is for C++ Language: Create a BusinessPartner class that contains a first name, company name, and a telephone number. Create a Con
Define global variable in c++ program: How to define a global variable and need of global variable in c++ program. int main() { int m=20; clrscr(); for
Important questions
how to create a shopping cart
Deliverables: you are required to upload your c code in the assignment dropbox set in Moodle. You are supposed to work with Linux gcc compiler and pico editor for compiling via the
Operator Overloading Fundamentals The C language uses the concept of Operator Overloading discreetly. The asterisk (*) is used as multiplication operator as well as indirect
Problem: (a) Using a class hierarchy of your own choosing, with at least TWO subclass levels, show (i) the use of abstract and concrete forms of Java class and method in you
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