Project #105452 - CMIS 102 Hands-On Lab

Learning Exercises for you to complete

Part 1 Lab

 

1. Change the C code to calculate the product of two integers as opposed to the sum of two integers. 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 product of two integers.

 

3. Change the C code to calculate the quotient (e.g. a/b) of two floats (e.g. 2.3/1.5).Hint: Use float variable types as opposed to integers. What happens if the denominator is 0.0? Support your experimentation with screen captures of executing the new code

 

4. Prepare a new test table with at least 3 distinct test cases listing input and expected output for the quotient of two floats.

 

Submission

 

Submit a neatly organized word (or PDF) document that demonstrates you successfully executed this lab on your machine using an online compiler. You should provide a screen capture of the resulting output.

 

Also, provide the answers, associated screen captures, C Code and descriptions of your successful completion of learning exercises 1, 2, 3 and 4.

 

The answers to the learning exercises, screen captures, C code and descriptions can be included in the same neatly organized document you prepared as you ran this lab. Note the code can be embedded in the word document. However; be sure all code compiles and runs perfectly before submitting the document.

 

Part 2

 Test Case Creation Using the following pseudocode, provide 3 unique test cases that would help validate your algorithm. Be sure to place the test cases in table showing the input values, and expected output for each test case.

 

Write "Enter the price in dollars:"

Input Price

Write "Enter state sales tax(e.g. .06) :"

Input SalesTax

Set Price = Price + (Price * SalesTax)

Write "Price with Tax is" + Price

 

 

Submit your word or PDF file to your assignments folder no later than the due date.

File:::: https://www.dropbox.com/s/70umivy95mbaptw/Week%202%20Hands-On%20Lab.pdf?dl=0

Subject Computer
Due By (Pacific Time) 01/27/2016 08:00 am
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy