{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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
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
Background image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}