This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: University of Cincinnati Department of Computer Science CS 121-002 Computer Science 1 Laboratory 2 Design Report Benjamin D. Jones 16 January 2008 1. Introduction The purpose of this lab assignment is to learn how to develop C++ programs that use simple input and output statements, and assignment statements that include: expressions, integer variables, and constants. The lab will consist of two programs each accomplishing the same goal, but coded using different styles. The goal of each program is to take a positive integer as an input from the user, which represents the length of one side of a square, computer the area of that square, and display a meaningful message back to the user that indicates the results of the computation. 2. Design Main Module 1. Get a positive integer from the user 2. Calculate the result a. Square the integer taken from the user 3. Display The area of a square of length <length> is <area> 3. Test Plan The approach here is to find an answer from the mathematical formula for finding area of a square and...
View Full Document
This lab report was uploaded on 04/18/2008 for the course ECEE 120 taught by Professor Carter during the Winter '08 term at University of Cincinnati.
- Winter '08