Not a Member?Sign Up! | Forgot Password?Click Here!

Shopping Cart

CMIS 102 Week 3 Hands-On Lab New Work

  • CMIS 102 Week 3 Hands-On Lab New Work
  • Price : $10.00 | $7.00

This Tutorial Purchased: 9 Times Rating: A+

This Tutorial contains following Attachments:
  • CMIS 102 Week 3 Hands-On Lab 1.docx
  • CMIS 102 Week 3 Hands-On Lab 2.docx

CMIS 102 Week 3 Hands-On Lab NEW



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


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.


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

1. Change the C code to calculate the perimeter of a triangle. Support your experimentation with a screen capture of executing the new code

2. Prepare a new test table with at least 3 distinct test cases listing input and expected output for the perimeter of a triangle.

3. What is this line of code doing?

1 scanf("%f", &height);

4. How would you change this line if you wanted to input an Integer as opposed to a float?

5. What are the values of f and g after executing the following C?

Write a review

Note: HTML is not translated!
    Bad           Good