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!
Overloading Binary Operators
class SI
{float i,p,n,r,a;
public:
SI(){};
SI(int gp,int gn, int gr);
void putdata(void);
SI operator+(SI);
};
SI SI::operator+(SI i1)
{SI i2; i2.p=p+i1.p; i2.i=i+i1.i; i2.a=a+i1.a; return i2;
}
void SI::putdata(void)
{cout<<"Principle is: "<
cout<<"Interest is "<
cout<<"Amount is "< } SI::SI(int gp,int gn, int gr) {p=gp;n=gn;r=gr; i=(p*n*r)/100; a=p+i; } int main() { SI i1,i2,i3; i1=SI(1000,2,10); i1.putdata(); cout< return 0; }
SI::SI(int gp,int gn, int gr)
{p=gp;n=gn;r=gr; i=(p*n*r)/100; a=p+i;
int main()
{ SI i1,i2,i3;
i1=SI(1000,2,10); i1.putdata(); cout< return 0; }
return 0;
Problem: (a) (i) What is a structure? (ii) How does a structure differ from an array? (b) Declare a structure, called account, that will contain the following data me
A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome
Project Description: Boots capture video from your YouTube channel and upload your own video to our channel or the copyright of the videos, bang, 3 parties, automatically delete
Using Figure 10.2 as a model, illustrate the result of each operation in the sequence ENQUEUE.Q; 4/, ENQUEUE.Q; 1/, ENQUEUE.Q; 3/, DEQUEUE.Q/, ENQUEUE.Q; 8/, and DEQUEUE.Q/ on an i
C program for function of average int average(int); void main() { int max=0,c=0; clrscr(); printf("ENTER THE LIMIT OF INPUT FOR AV
Please give me a programming code of first & follow with c or c++ laqnguage .When anyone give me the programming code of first & follow please explain every lines with the help
i am using otlv4 for database connecttvity, while i try to get all tables list from current database using query "$SQLTables" no output is displayed though programe compiles coretl
#queComputers are frequently used in check-writing systems, such as payroll and accounts payable applications. Many stories circulate regarding weekly pay- checks being printed (by
Record separation problem Let us assume that a particular database program manages a simple mailing list which consists of one record for each person on the list, and a number of f
A: 1. By using const protects you against programming errors which inadvertently alter data. 2. By using const allows function to procedure const and non-const actu
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