// MUHAMMAD NAZRI IZZAT BIN HAMDAN A20EC0216 //
// RAJA MUHAMMAD HAFIZ BIN RAJA ALAUDIN SHAH A20EC0223 //
// 25.12.2020 //

#include <iostream>
#include <cmath>
using namespace std;

int main()
{
	int code, twidth, tlength;
	double tprice, width, length, cost, tiles ;

	cout << "Enter the tile's code =>";
	cin  >> code;
	cout << "Enter the tile's price (RM) =>";
	cin >> tprice;
	cout << "Enter the surface's width (in feet) =>";
	cin >> width;
	cout << "Enter the surface's length (in feet) =>";
	cin >> length;
	cout << endl;

	twidth = code / 100;
	tlength = code % 100;
	tiles = ((width * 12) * (length * 12)) / (twidth * tlength);
	cost = tprice * ceil(tiles);

	cout << "Customer's Receipt" << endl;
	cout << "=============" << endl;
	cout << "Code : " << code << endl;
	cout << "Width : " << twidth << " inches" << endl;
	cout << "Length: " << tlength << " inches" <<endl;
	cout << "Price : RM " << tprice << endl << endl;
	cout << "The number of tiles required: " << ceil(tiles) << " pieces" << endl;
	cout << "The total cost: RM " << cost << endl;


	return 0;
}
