Homework Assignment #1, Hello World Solution

$35.00 $29.00

Make sure you click on the GitHub link on ilearn to create your repository for this project. ALL CODE must be submitted to this repository for grading. For this assignment, you will write a simple program in C that prints out the following string on the shell command line: CSC 415, This program written by…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Description

5/5 – (2 votes)

Make sure you click on the GitHub link on ilearn to create your repository for this project.

ALL CODE must be submitted to this repository for grading.

For this assignment, you will write a simple program in C that prints out the following string on the shell command line:

CSC 415, This program written by <your name>!

where <your name> is replaced by your name (you should store the value of your name in a #DEFINE’d constant). You will implement your code using the Unix system calls.

The Unix program should be implemented using a single low level write() system call, along with the sprintf() utility to format your output into a buffer prior to output. You will use a Linux computer or Linux VirtualBox for this assignment. You will need to download/install the free Virtual Box Appliance from Oracle, then download the Virtual Box appliance from the course web site (this file is more than 2Gbytes in size – be sure to use a wired connection in the CS lab & a USB stick, as necessary, for reasonable download times). Check the system call man pages on each machine to determine the correct #include directives to use on each machine for each system call, and use gcc to compile your program along with a make file to control compilation.

You should submit your source code and a readme file to explain the following things:

  1. How to build the program

  2. How to run the program

  3. What the program does.

This submission will be made to your repository. Make sure to do the following when you are done with your project:

  • git add .

  • git commit -m “some message”

  • git push

See the course web site for due dates and late work policy.

Homework Assignment #1, Hello World Solution
$35.00 $29.00