User Tools

Site Tools


user:acrowle1:portfolio:cprogproject1

Project: Hello World!

A project for CSCS1320S14 by Alana Whittier during the Spring 2014 Semester.

This project was begun in lab on January 23, 2014. It took about 10 minutes to complete although I presume it would have taken significantly less time if I were more experienced with Unix/Linux Terminal, as well as C programming language.

Objectives

The purpose of this project was to familiarize us with both the C programming language as well as the Unix/Linux environment. If the program is written correctly, a standard input/output header file is included, the main function is defined, and a string of text will be generated.

Prerequisites

In order to successfully accomplish/perform this project, the listed resources/experiences need to be consulted/achieved:

  • Matthew Haas (lab instruction)
  • Shawn Meas (lab assistant)

I fully disclose that I did not consult any other documentation to complete this particular project. I relied on my notes and some help from Shawn.

Background

“Hello World!” is a simple program used in a variety of program languages to serve as an introduction and first program to help familiarize the new user with various aspects of the program, such as syntax, libraries, functions, etc. In this course, C programming, this basic program is also used to call the standard input/output header file, define the main function, and print a string of character text with the compiler, assuming correct Syntax is used.

Scope

The scope of this project is to write a program where a character string “Hello World” is returned if compiled successfully.

Attributes

State and justify the attributes you'd like to receive upon successful approval and completion of this project.

  • attribute1: Upon successful compilation of the program, “Hello World!” will display on the screen.
  • attribute2:

Procedure

The actual steps taken to accomplish the project. Include images, code snippets, command-line excerpts; whatever is useful for intuitively communicating important information for accomplishing the project.

Code

Upon completion of the project, if there is an applicable collection of created code, place a copy of your finished code within <code> </code> blocks here.

<nano helloM-D.c> /*Hello.c A first C Program

written by Alana Whittier for CSCS1320S14 on January 23, 2014

*/

#include <stdio.h> int main()

{ printf(“Hello, World!\n”);

      return (0)

}

</code>

Execution

lab46:~/src/cscs1320$ ./helloM-D
Hello, World!
lab46:~/src/cscs1320$ 

Reflection

When I consider this project, while quite simple and relatively easy to understand, the most difficult part to me was working remotely in Lab46 from home. It required a bit of work to learn to save in a Windows (DOS) format to compile and execute the code.

References

In performing this project, the following resources were referenced:

  • URL1
  • URL2
  • URL3 (provides useful information on topic)
  • URL4

Generally, state where you got informative and useful information to help you accomplish this project when you originally worked on it (from Google, other wiki documents on the Lab46 wiki, etc.)

user/acrowle1/portfolio/cprogproject1.txt · Last modified: 2014/02/02 19:30 by acrowle1