Thursday, December 22, 2016

Write a Programme that computes the simple interest and compound interest payable on principal amount (in Rs.) of loan borrowed by the customer from a bank for a giver period of time (in years) at specific rate of interest. Further determine whether the b bank will benefit by charging simple interest or compound interest

/*Write a Programme that computes the simple interest and compound interest payable on
principal amount (in Rs.) of loan borrowed by the customer from a bank for a giver period of
time (in years) at specific rate of interest. Further determine whether the b bank will benefit
by charging simple interest or compound interest*/
#include <math.h>
int main()
{
int P,R,T,SI,CI;
cout<<"Enter the principal ,time period & interest rate";
cin>>P>>R>>T;
SI=(P*R*T*)/100;
CI=P*(pow(1+R/100),T);
cout<<"The S I is"<<SI<<endl;
cout<<"The C I is"<<CI<<endl;
if(SI<CI)
{
cout<<"Bank is Benfited by COMPOUND INTREST";
}
else
{
cout<<"Bank is Benfited by SIMPLE INTREST";
}
return 0;
}
/*Write a Programme to calculate the fare for the passengers traveling in a bus. When a
Passenger enters the bus, the conductor asks “What distance will you travel?” On knowing
distance from passenger (as an approximate integer), the conductor mentions the fare to the
passenger according to following criteria.*/

1 Comments:

At June 6, 2018 at 9:03 AM , Blogger hitesh kumar said...

This Find Compound Interest Program in C++ is very helpful for all computer science students. keep sharing bro.

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home