/*
*This program calculates the total cost of carpet
*to cover the room floor
*It calculates the room area then the total cost
*/
class Main
{
public static void main(String[] args)
{
//determine variables
double length, areaOfRoom, c, tc;
int width;
//give variables value
length=8.5;
width=6;
c=19.95;
String strDouble = String.format("%.2f", 1017.4499999999999);
String unit= "cm";
//calculations
areaOfRoom=length*width;
tc=areaOfRoom*c;
//print output
System.out.println("The room with the "+length+unit+" by "+width+unit+" costs $"+strDouble+".");
}
}