//Lab 10 //Instructions: Complete the 4 functions below, all of which use structs. #include #include #include using namespace std; int const SIZE = 100; struct Account { double transaction[SIZE]; double start_balance; double new_balance; }; struct Point { double x; double y; }; struct Polygon { Point points[SIZE]; int num_points; }; void compute_balance(Account& my_money); double distance_between(Point first, Point second); double distance_from_origin(Point p); double perimeter(Polygon poly); int main() { Account savings; Point first, second, third; Polygon square; //Polygon triangle; int i; //Loop variable savings.start_balance = 1000; savings.transaction[0] = 20; savings.transaction[1] = 20; savings.transaction[2] = -34; savings.transaction[3] = -100; for(i=4; i