Chat with us, powered by LiveChat CMIS 102 Week 3 Hands-On Lab NEW | Writedemy

CMIS 102 Week 3 Hands-On Lab NEW

CMIS 102 Week 3 Hands-On Lab NEW

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:)

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?

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order