This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
struct Time{ | |
int hour, min, sec; | |
} times[3]; | |
int add (Time times[3]); | |
int main(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
using namespace std; | |
string province(string); | |
int main(){ | |
string city, abbrev, prov; | |
cout<<"Enter city: "; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
using namespace std; | |
string province(string); | |
int main(){ | |
string city, abbrev, prov; | |
cout<<"Enter city: "; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
double calcInt (double, double, double, double&); | |
int main(){ | |
double deposit, ratePer, rateDec, endAmount, years, endBalance; | |
cout<<"Enter initial deposit: $"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
void printRows(int); | |
int main(){ | |
int nrows; | |
cout<<"Enter number of rows (>0): "; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
void calcInt (double&, double, double, double&); | |
int main(){ | |
double P, r, wantAmount, years, endBalance; | |
cout<<"Enter initial deposit: $"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
void printRow (int, int); | |
int main() | |
{ | |
int nrows; | |
cout<<"Enter number of rows (>0): "; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
using namespace std; | |
string province(string); | |
int main(){ | |
string city, abbrev, prov; | |
cout<<"Enter city: "; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cmath> | |
using namespace std; | |
const long double pi = 3.141592654; | |
void getDim (float&); | |
void getDim (float&, float&); | |
void getDim (float&, float&, float&); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cmath> | |
using namespace std; | |
class Complex{ | |
public: | |
Complex();//constructor | |
addComp(Complex&, Complex, Complex);//addition of complex members | |
subComp(Complex&, Complex, Complex);//subtraction of complex numbers | |
multComp(Complex&, Complex, Complex);//multiplication of complex numbers |
OlderNewer