Perfect Essay Writing

CMIS 102 Week 7 Hands-On Lab

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 7 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, and implementation with C code. The
example provided uses sequential, repetition, selection statements and two user-defined function.
Program Description
This program will provide options for a user to calculate the square or cube of a positive Integer input by a user. The program will prompt the user to enter an Integer and then prompt the user if they want to
calculate the square of the cube of the number. Based on the inputs of the user, the program will output
the square of the cube of the positive integer. The program will then print the Integer and square or cube of the integer based on the user’s original choice. The program will continue to prompt the user for
Integers and their calculation choice until the user enters a negative integer. The square and cube calculations should be calculated using a function.
Analysis
I will use sequential, selection, and repetition programming statements and functions for the cube and
square calculations. I will define three Integer numbers: IntValue, MenuSelect, Results to store the Integer value input by the user, the Menu selection (1 for Square, 2 for Cube) of the user, and the results of the Square or Cube functions.
The Square function will take one Integer as input and return one Integer as the output. The calculation within the Square function is: Results = IntValue * IntValue
For example: if 10 was entered as the IntValue. Results = 10*10 = 100
The Cube function will take one Integer as input and return one Integer as the output. The calculation
within the Cube function is: Results = IntValue * IntValueIntValue For example: if 10 was entered as the IntValue. Results = 1010*10 = 1000
A repetition loop can be used to loop through iterations until a negative is entered:
Learning Exercises for you to complete

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.

  1. Using the Square and Cube functions as models, Create an application that includes a function named “Shrink” that would take an Integer and return the Integer divided by 2? (Hint: your returned value should probably be a double type.) Support your experimentation with screen captures 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 code you created after step 1.
  3. What would happen if you removed the following code from our design? If intValue> 0 Support your argument with screen captures of executing the new code.
  4. Modify the original code and add an additional function of your choice. The function should be unique and something you created for this assignment. Support your experimentation with screen captures of executing the new code. Prepare a test table with at least 3 distinct test cases listing input and expected output for your unique function.
SOURCE: WWW.ROYALRESEARCHERS.COM
Havent found the Essay You Want?
We Can Help
The Essay is Written From Scratch for You

🛒Place Your Order

ORDER AN ESSAY WRITTEN FROM SCRATCH at : https://royalresearchers.com/
PLACE YOUR ORDER
Share your love