1 Kinos

Cmis 102 Assignment 2

This hands-on lab demonstrate a simple sequential print statements using an online C compiler such as ideone.com. You should follow the instructions to complete the lab as well as perform the learning exercises at the end of this lab.


  1. Open up any online C compiler (e.g ideone.com).
  2. Be sure the C Language is selected.
  3. Enter the code below into the editor. (Note: LEO doesn’t let you just copy and paste from this document so you can either download the document and then copy and paste or just go to the Code for HelloWorld link for this week and copy and paste from there.)
  4. Click the submit, or run button.
  5. Try the additional learning exercises on the next page. Here is what Hello, World! Looks like using ideone.com after it has successfully run

    Hello, World C code

    #include <stdio.h> int main(void) { printf("Hello, World!"); return 0; }

Learning Exercises for you to complete

  1. Remove the semi-colon (;) at the end of this statement: printf("Hello, World!");

    Describe what happens. Why is the semi-colon needed?

  2. What happens if you add another printf statement such as: printf("Goodbye"); after the printf("Hello, World!"); line?

    Describe the new output. Be sure to support your description with screen captures of executing the new code.

  3. Experiment by adding additional printf statements to your code such as: printf("Goodbye \n"); printf("Hello, again! \n");

    What does the “\n” do to the output?

Be sure to experiment by adding several printf statements and describe the resulting output. Be sure to support your description and experimentation with screen captures of executing the new code.

Submission Submit a neatly organized word (or PDF) document that demonstrates you successfully executed the Hello,World 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 and 3.

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 the Hello, World application. Note the code can be embedded in the word document. However; be sure all code compiles and runs perfectly before submitting the document.

This slideshow requires JavaScript.

This assignment includes a zip file.

  • Attachments
    • CMIS_102_Week_1_Lab.zip (420.80 KB)
      • CMIS102 Week 1 Hand-On Lab.docx
      • CMIS102-Week-1-Lab-Screenshot-1.png
      • CMIS102-Week-1-Lab-Screenshot.png

Purchasing Instruction
List Price:$9

Buy More Save More
Buy at least TWO items & save up to 30% OFF your ENTIRE order!
Rack up instant rebates in your shopping cart. Simply add items to your cart, and see the savings add up.
Discounts will automatically be applied on eligible orders.

Homework 2 – Test Case Crea±on Using the following piece of pseudocode below that assumes that all variables have been properly declared. Provide 3 unique test cases that would help to validate the algorithm. Be sure to place the three test cases in a table showing the input values, and expected output for each input. Also, run your code three times with the three sets of inputs from your test table and include screen captures of the code and outputs from all three runs. 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 Also show one example of conducting what is known as a deskcheck. A deskcheck is when you pretend you are the compiler and you track all input and/or output and/or execution that happens line by line in your code. Deskchecks can be done for pseudocode, or C or Java, or any code written in any language. Deskchecks help you to know if your code will work before you ever run it. See the example deskcheck below and create the same type

Leave a Comment


Your email address will not be published. Required fields are marked *