Call over a TA to take a look at the program that you created in this lesson.
Homework Problem 3
A brick layer wishes to build a wall that is as close as possible, but
of at most w feet in width, and that is as close as possible, but at
least h feet in height. He uses bricks of dimension
,
with 1/2 inch of mortar in between, with the length L horizontal, with the
bricks NOT staggered a half brick from one row to the next (as is
often the case) and with the wall always being W in thickness. The price
of each brick is c dollars. Write a program that inputs w, h, L, H, and
c, and outputs the number of bricks required and the cost of the bricks.
Call the file that contains your program solution3.f. To submit it for grading, use the UNIX Shell window to connect to the directory that contains your program and enter the following command:
handin cs101 problem-3 solution3.f
Hamlet Project