In this assignment, you will design a program to perform the following task:
Calculate the area and perimeter of a rectangle whose dimensions are provided by a user.
Before attempting this exercise, be sure you have completed all of chapter 8 and course module readings, participated in the weekly conferences, and thoroughly understand the examples throughout the chapter. There are 3 main components of your submission including the problem analysis, program design and documentation, and sample test data.
Analysis
Provide your analysis for the following problem statement:
Write a program using functions that calculates the area and perimeter of a rectangle whose dimensions (length and width) are provided by a user. Display the results.
Your analysis should be clearly written, demonstrating your thought process and steps used to analyze the problem. Your analysis should address the following points:
- · Output required by the problem.
- · Necessary input and how you will obtain the required output from the given input.
- · Variable names and definitions you will use to solve the problem.
- · Necessary formulas and sample calculations that might be needed.
- · Assumptions you are making about the problem.
Design
Provide your program design for the program you analyzed in step 1. Be sure to describe the fundamental tasks (i.e., things your program must do) needed to solve the problem so you can use a modular design.
Use functions for calculating the area and perimeter of the rectangle. Other sub-module for Input and Output should be included as needed.
Provide a hierarchy chart for the program (see figure 3.8 page 148).
Provide flow charts for the main module and each sub-module/function (see figure 5.3 page 225).
Provide pseudocode of your overall design that includes the Main module and the order of the module calls (see page 148 for an example). List all of your pseudocode for each module. (See pages148-150 as an example). Please use the base pseudocode described in the text and course modules; third-party libraries should not be used.
Include header and step comments in your pseudocode, using a similar approach as the example provided in section 2.3 (textbook page 86). See example 2.8 on pages 87-88).
Test
Prepare at least 3 sets of input data (Test data) along with expected output for testing your program. Your test data can be presented in the form of a table as was shown in Assignment 1.
Submission requirements
Your completed assignment should be saved as Word document and submitted to your WebTycho assignment area no later than the due date listed in the syllabus. Your document should be neat, well-written with minimal grammatical and spelling errors. Your name should be clearly listed on the first page along with the class/section, professor and due date. Your document should contain page numbers at the bottom of each page. Single or double space line formatting is acceptable.
You should name the file yournamehw4 x (or yournamehw4 ). So if my name was Julie Smith, I would name my document juliesmithhw4 x. An example HW4 template file containing the required sections is included in the Discussion folder of the class conference board. You should use this document to start your writing and fill in all of the details required.