Instructions
For this final exam, you may use the text, your notes, programs you have written, as well as PowerPoint slideshows used in class. However, this exam is designed to test your individual knowledge of the course material; Collaboration is not allowed.
You will be creating 2 programs and flow-chart for each using different constructs, functions, and data manipulation.
For each program, include the following information at the top of your code:
Your Name
Date
Final Exam – CIS126 program #
Brief statement telling the purpose of the program
EXAMPLE:
John Doe
November 5, 2017
Final Exam – CIS126 Program 1
Calculate the hypotenuse of a right triangle
For all programs, brief comments are required as follows:
Program #1
Create a program to calculate the hypotenuse of a right triangle. The values for the sides of the triangle will be input from the keyboard; the hypotenuse will be calculated using the equation c = √(a^2+ b^2 ) where c is the length of the hypotenuse; a and b are the length of the two sides. (c is equal to the square root of the sum of a squared and b squared) (Requires the use of the SQRT() and POW() functions.
Draw the flow chart for the program.
Functional requirements
Program #2
Create a program with three string arrays, two 25-element arrays and one 100 element array.
Functions required:
Program execution:
WhatsApp us