// ~cs35/array_2a.cpp

#include "CS35files.h"

int main ()
{

	double price[4];
	int number, changit;
	cout << "How many prices will you enter (1 - 3) ? ";
	cin >> number;
	for (i =1; i <= number; i++)
	{	
		cout << "Enter price "<<i<<": ";
		cin  >> price[i]; //take u from 1 till 3 .
	}
	
	cout << "You entered ";
	set_decimal(2);
	
	for (i =1; i <= number; i++)
	{
		cout<<setw(8)<<price[i];
	}
	cout << endl<<endl;
	
	cout << "You may change one price. Enter an integer from 1 to ";
	cout << number<<" (0 for no change): ";
	cin >> changit;
	
	cout << "Price "<<changeit<<" was $"<<price[changeit]<<" what should it be: ";
	cin  >> price[changeit];

	cout <<"Now your prices are ";




	cout << endl<<endl;

	return 0;
}	
	
		
