ComProg2 Act4
ComProg2 Act4
ComProg2 Act4
#include <iostream>
#include <iomanip>
using namespace std;
/* run this program using the console pauser or add your own getch,
system("pause") or input loop */
area2=L2*W2;
cout<< fixed << setprecision(2);
cout<<L2<<"\t\t\t"<<W2<<"\t\t\t"<<area2<<" in.^2"<<endl;
area3=L3*W3;
cout<<fixed<<setprecision(2);
cout<<L3<<"\t\t\t"<<W3<<"\t\t\t"<<area3<<" in.^2"<<endl;
area4=L4*W4;
cout<<fixed<<setprecision(2);
cout<<L4<<"\t\t\t"<<W4<<"\t\t\t"<<area4<<" in.^2"<<endl;
area5=L5*W5;
cout<<fixed<<setprecision(2);
cout<<L5<<"\t\t\t"<<W5<<"\t\t\t"<<area5<<" in.^2"<<endl<<endl;
return 0;
}
2.
#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch,
system("pause") or input loop */
int main(int argc, char** argv) {
double ft=5280;
double m=2.36;
double d;
d=ft*m;
#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch,
system("pause") or input loop */
t=d/s;
cout<<"\n\tElapsed time: " <<t<<" hr"<<endl;
cout<<"\n\tProgrammer's Name: Rose Mae D. Cales";
return 0;
}