Homework #1 Introduction to Computing

Due: January 29, 2009 (Friday at 11:59 PM)

Paint Job Estimator Program

A painting company has determined that for every 115 square feet of wall space, one gallon of paint and eight hours of labor will be required. Additionally, for every 130 square feet of ceiling space, one gallon of paint and 6 hours of labor will be required. The company charges $20.00 per hour for labor. Write a program that asks the user to enter the dimensions of the room (i.e., length, width, and ceiling height), the price of the wall paint per gallon, and the price of the ceiling paint per gallon. Your program should assume that the room is a box so you do not need to worry about window or door cutouts.

Since a homeowner might want to consider painting only the walls or ceiling, your program should display the information about the walls and ceiling separately. It should print:

Before you start writing your program, (re)read section 3.3 on Designing a Program to Use Functions, because I want you to actually design your program. Split your program up into well-defined functions by doing a top-down design and developing a hierarchy chart.

When you write your program, be sure to use:

Submit your homework electronically at http://math-cs.cns.uni.edu/~schafer/submit/which_course.cgi

Submit the following files: