//Alex Griffiths

//Question 2
/*#include <stdio.h>
#define PI 3.142;

void main()
{
	float v, r, r3;
	r = 1;

	while (r == 1)
	{
		printf("Please enter a value for the radius:\n");
		scanf("%f", &r);

		if (r == 1)
		{
			printf("Please enter a value for the radius\n");
		}
	}

	r3 = r * r * r;
	v = 4 / 3 * r3 * PI;

	printf("\n%f\n", v);
}*/

//Question 3
/*#include <stdio.h>

void main()
{
	int TempArray[5] = { 0, 0, 0, 0, 0 };
	int i = 1;
	int Average = 0.0;

	while (i != 6)
	{
		printf("\nPlease enter Temperature %d: \n", i);
		scanf("%d", &TempArray[i-1]);
		Average = Average + TempArray[i-1];
		i = i + 1;
	}

	while (i != 6)
	{
		printf("\nTemperature %d: %d\n", i, TempArray[i-1]);
		i = i + 1;
	}
	
	Average = Average / 5;
	printf("\nThe average temperature is %d\n", Average);
	
}*/

//Question 4
/*#include <stdio.h>
#include <stdlib.h>
#include <string.h>

using namespace std;

struct CityData
{
	char CityName[30];
	float PopulationSize;
	char Country[30];
	int NoParks;
};

void main()
{
	CityData MyCity[2];
	int i = 1;

	//London
	strcpy(MyCity[0].CityName, "London");
	MyCity[0].PopulationSize = 8.215489;
	strcpy(MyCity[0].Country, "England");
	MyCity[0].NoParks = 19;

	//Tokyo
	strcpy(MyCity[1].CityName, "Tokyo");
	MyCity[1].PopulationSize = 12.86515;
	strcpy(MyCity[1].Country, "Japan");
	MyCity[1].NoParks = 7;

	while (i != 3)
	{
		printf("The name of the city is %s.\n", MyCity[i - 1].CityName);
		printf("The population is this city is %f (million).\n", MyCity[i - 1].PopulationSize);
		printf("The city is in the country of %s.\n", MyCity[i - 1].Country);
		printf("The number of parks in the city is: %d.\n", MyCity[i - 1].NoParks);
		printf("\n");
		i = i + 1;
	}
}*/