# Pseudocode

QUESTION 1

Using Pseudocode, create your own function that accepts one input parameter and returns a float number. You decide the theme.

You should provide the pseudocode and an example call. Be sure to provide an overview of what your function is doing.

QUESTION 2

1) What will be the output of the following pseudocode and why?

float [] table1 = {7.8, 6.7, 3.2}

int [] table2 = {8, 4, 5}

intlNum, hNum;

lNum = gettable (table2);

hNum = getTable (table1);

printf (“High number = %dn”, lNum);

printf (“Low number = %dn”, hNum);

Functions:

int gettable ( int set[] )

{

return lowest number;

}

intgetTable ( int set[] )

{

return highest number;

}

2) Provide your algorithm and C code that accomplishes the following:

Allows a user to input a list of positive integer numbers terminated by 0 into an array, find the largest number in the array and outputs the result. Use a function to find the largest number in the array.

3) Provide assistance (not the answer) to your fellow classmates for either of the above 2 questions as needed. Ensure all final answers are posted to the discussion topic by the due date.

QUESTION 3 THE MOST IMPORTANT!!

• In this homework, you will 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:

• Program Description- A detailed, clear description of the program you are building.
• Analysis- Demonstrates your thought process and steps used to analyze the problem. Be sure to include the required input and output and how you will obtain the required output from the given input? Also, include your variable names and definitions. Be sure to describe the necessary formulas and sample calculations that might be needed. Talk about how your design will allow any number of students and final grades to be possible inputs.
• Test plan – Prepare at least 3 sets of input data (Test data) along with their expected output for testing your program. Your test data can be presented in the form of a table as follows (note: feel free to adapt to your design)
• Pseudocode- Provide pseudocode of your overall design that fulfills the requirements of the project

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

Example application test data:

 Test Case # Input Expected Output 1 Length =4.0, Width=8.0 Area = 32 Perimeter = 24 2 Your input data Your expected output 3 Your input data Your expected output   Click Order now to have a similar paper completed for you by our team of Experts.