Skip to content

Programming by Design

If you're not prepared to be wrong, you'll never come up with anything original. – Sir Ken Robinson

  • About
  • Java-PbD
  • C-PbD
  • ASM-PbD
  • Algorithms
  • Other

CISS-110 Project 1 – C

Posted on June 16, 2022August 13, 2024 By William Jojo
CISS-110-Project-C
CISS-110 Project 1

The goal of the first project is to become acquainted with your integrated development environment (IDE). This is intended to purposefully introduce errors that you will then correct – preferably one at a time. The reason is that you should experience how some errors may change or completely disappear as a result of fixing just one.


Learning outcomes

  • Interaction with IDE.
  • Interaction with C Compiler.
  • Reviewing reported errors and deducing needed repairs.
  • Successful compilation of project.
  • Confirmation program produces desired results.

The code below should be copied and pasted into a new IDE session. Save the program and begin the compile/edit/run process.

#include <studio.h>

Int main (viod) {
  
  int x, y;
  char ch;
  char s[] = "This is a string value assigned to s";
  boolean b = true;
  
  
  c = 'K';
  x = 15;
  Y = 20;
  
  printf("Value of x is %d.\n", x);
  printf("Value of y is %d.\n", Y);
  printf("Value of ch is %c.\n", c);
    
  printf("Value of s is\n*%S*\n", s);
  
  printf("Value of b is %d.\n", b);
  
} // end of main method

This is a relationship-building exercise. You are developing a relationship with the compiler. You will not always understand what the compiler is trying to tell you – much like relationships in real life!

You must work hard to begin understanding what your IDE and the C compiler are trying to tell you. The errors will become easier to understand over time, but it is essential to begin the process now as this is a never-ending endeavor.


Submit the project into Blackboard as Project1_lastname.c.

Post navigation

❮ Previous Post: Installing JetBrains CLion and C compiler
Next Post: CISS-110 Project 2 – C ❯

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Copyright © 2018 – 2025 Programming by Design.