Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Homework4: Functions design a program to perform the following task: Design and

ID: 3557746 • Letter: H

Question

Homework4: Functions

design a program to perform the following task:

Design and write a program, using functions, that calculates the area and perimeter of a rectangle whose dimensions (length and width) are provided by a user.

There are 4 components of your submission including:

As recommendation, you can try to use Eclipse or NetBeans environments that are used also for other courses as: Introduction in Java programming and Intermediate programming.

All of these components should be placed in word document for submission.

The C code have to be a document written with a text editor or Notepad++ (http://notepad-plus-plus.org/)

Example application test data:

Test Case #

Input

Expected Output

1

Length = 4

Width= 8

Area = 32
Perimeter = 24

2

Your input data

Your expected output

3

Your input data

Your expected output

In our example the user of your program have to enter as input values:

4 8

Test Case #

Input

Expected Output

1

Length = 4

Width= 8

Area = 32
Perimeter = 24

2

Your input data

Your expected output

3

Your input data

Your expected output

Explanation / Answer

Module Main()

Declare width, height, area, perimeter as float

Display