designreport - University of Cincinnati Department of...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the 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.

Page1 / 2

designreport - University of Cincinnati Department of...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online