Write a method printCostTable() that prints out a table

I am struggling to write a method printCostTable() that prints out a table with the following titles.

price carpet fitting

The method should take four int arguments representing the width and length of the carpet, a start price and an end price. It should print the price, carpet cost and fitting cost for each price starting from startPrice and increasing in increments of £4, up to but not exceeding endPrice. I have only done the following… struggling with the rest! I am not sure if thats even right.

public printCostTable(int width, int length, int startPrice, int endPrice) {}