Sunday, December 8, 2013

Computer

CMIS102 Homework concession 4 (Worth 16% of your grade) Student raise: William Moss Class/Section: CMIS Professor Name: Countryman Assignment referable date: 16 JUL 12 Problem translation: Write a program, using functions, that calculates the subject area and racing circuit of a rectangle whose dimensions (Length and largeness) are provided by a user. A. Problem compend - Main staff: This staff entrust be the important starting mental faculty. It is responsible to shrink user foreplay and song other mental facultys to calculate and expose rectangle area and circuit. - calc discipline module: This module will put one across rectangle outdo and width as commentary and return rectangle area as output. vault of heaven will be calculated as: Area = length x width - calc border module: This module will take rectangle length and width as arousal and return rectangle perimeter as output. T he parameter will be calculated as: Perimeter = 2 x width + 2 x length - flourishResults module: This module will take Area and Perimeter of the triangle as input arguments and display results to the user. B. Program institution At program startup, of import module will be executed which will transmit out the following travel: o Declare variables. o Get user input for length and width. o skirt calcArea module to calculate area of the rectangle.
Ordercustompaper.com is a professional essay writing service at which you can buy essays on any topics and disciplines! All custom essays are written by professional writers!
o Call calcPerimeter module to calculate perimeter of the rectangle. o Call dispResults module to di! splay results to the user. Psuedocode: mental faculty Main() Declare width, height, area, perimeter as freewheel march Enter rectangle height: Input height presentment Enter rectangle width: Input width area = calcArea(width, height) perimeter = calcPerimeter( width, height) dispResults(area, perimeter) completion Main Module calcArea(width, height) Return with width x height End calcArea Module calcPerimeter(width, height)...If you want to get a full essay, order it on our website: OrderCustomPaper.com

If you want to get a full essay, visit our page: write my paper

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.