Order ready-to-submit essays. No Plagiarism Guarantee!
Note: All our papers are written from scratch by human writers to ensure authenticity and originality.
CMIS 102 Week 3 Hands-On Lab
Overview
This hands-on lab allows you to follow and experiment with the critical steps of developing a program including the program description, analysis, test plan, design, pseudocode visualization, and implementation with C code. The example provided uses mathematical operators and variable types. Program
Description
This program will calculate the area of a right triangle. The program will ask the user to enter the base and height and then use these values to calculate and then print the area of the triangle. The design step will include pseudocode.
Analysis
I will use sequential programming statements. I will define two float numbers for the base and height: base, height. Float numbers were selected as opposed to integers to make sure triangles of all dimensions are possible and not just whole numbers.
Float number will store the area: area
The area will be calculated by this formula:
Area = ½ * (base * height)
For example if the base was 4.2 and the height was 5.3 the area would be calculated as:
Area = ½ * (4.2 * 5.3) = ½ * (22.26) = 11.13
Test Plan
To verify this program is working properly the following base and height values could be used for testing:
Learning Exercises to be complete (Setting up the code and the input parameters in ideone.com:)
Check your essay before you submit. See exactly what your professor sees.
See your AI and plagiarism results before your instructor does.Get the exact same report your professor uses. Trusted by 50,000+ students worldwide.
- Change the C code to calculate the perimeter of a triangle. Support your experimentation with a screen capture of executing the new code
- Prepare a new test table with at least 3 distinct test cases listing input and expected output for the perimeter of a triangle.
- What is this line of code doing?
1 scanf(“%f”, &height); - How would you change this line if you wanted to input an Integer as opposed to a float?
- What are the values of f and g after executing the following C?


