CS 1323 Section 30, Spring 1997

Individual Project 6

Mowing the Lawn

Due Monday, April 14, 3:30pm

What to Hand In

Project Description

Write a program that estimates the amount of time it would take to mow a lawn. Assume that the lawn is on rectangular city lot, that a rectangular building sits on part of the lot, and that the lawn covers all of lot not occupied by the building.

Your program should retrieve from the keyboard the dimensions of the lot (length and width), the dimensions of the building, the rate at which the lawnmower travels, and the width of the lawnmower's cutting blade. It should display the time estimate on the screen.

Compute the time to mow the lawn, assuming a six-inch overlap in adjacent cut strips and ignoring the extra time required to trim near the building. If you're using the metric system, you can assume a fifteen-centimeter overlap between cut strips. In any case, be sure to name your units in the prompts and displays.

Ground Rules


CS 1323 Section 30 - Fundamentals of Computer Programming - Spring 1997
Instructor: Rex Page (Email: page@ou.edu)
Up to: Welcome Page ~~~ Up to: University of Oklahoma ~~~ Go to: Next Semester ~~~ Go to: Previous Semester