#include <iostream>
#include <string>
#include <sstream>
using namespace std;

int main(int argc, char* argv[])
{
	using namespace std;

	string bookTitle;
	cout << "Please enter a book title" << endl;
	cin >> bookTitle;
	cout << "Your book title is: ";
	cout << bookTitle; 
	cout << endl;
	
	float measureLength;
	cout << "Please enter a measure of length in cm" << endl;
	cin >> measureLength;
	cout << "Length is: ";
	cout << measureLength;
	cout << "cm";
	cout << endl;

	int shoppingCart;
	cout << "Enter the number of products found in a shopping cart" << endl;
	cin >> shoppingCart;
	cout << "Number of products entered: ";
	cout << shoppingCart;
	cout << endl;

	int length, width;
	cout << "Enter the length of the rectangle: " << endl;
	cin >> length;
	cout << "Enter the width of the rectangle" << endl;
	cin >> width;
	cout << "Area of the rectangle is: " << length * width; 
	cout << endl;
	cout << "Perimeter of the rectangle is: " << (length * 2) + (width * 2); 
	cout << endl;

	int height;
	cout << "Enter the length of the square: " << endl;
	cin >> height;
	cout << "Enter the width of the square" << endl;
	cin >> width;
	cout << "Area of the rectangle is: " << height * width;

	float radius, area;
	cout << "Enter the radius of the circle: " << endl;
	cin >> radius;
	area = radius * radius;
	cout << "Area of the circle is: " << area;  
	cout << endl;

	int sum(int arr[], int n);
		{
	float GBP[3];
	cout << "Enter 3 random amounts of GBP: ";
	for (int x = 0; x < 3; x++) 
		cin >> GBP[x];
		int sum = 0;
		sum += arr[x];
		return sum;
	}
	

	system("pause");
	cin.get();
	return 0;
}
