1. SI calculator
#include<iostream>
using namespace std;
int main()
{
float p,r,t,i;
cout<<"Enter Principle : ";
cin>>p;
cout<<"Enter Rate (per year) : ";
cin>>r;
cout<<"Enter Time (Years) : ";
cin>>t;
i=(p*r*t); // not sure about the formula
cout<<"Simple interest is : "<<i;
return 0;
}
2.Fahrenheit to degrees Celsius converter
#include <iostream>
using namespace std;
int main()
{
float f,c;
cout<<"Enter temperature in Fahrenheit : ";
cin>>f;
c=(f - 32)*(0.5555); // (9/5)=0.5555 aprox.
cout<<"Entered temperature in degrees Celsius : "<<c;
return 0;
}