Home Schedule
Mac Logo Windows Logoand Minix Logo Sun Solaris Logo Linux Logo
Assignment Day           Tuesday, August 16, 2016
Due Date Tuesday August 23, 2016

HW 1: An Introduction - warm up 100 pts

    1. Send a message to the mailing list introducing yourself. We are still setting up Piazza for this, and hope to have this set up by Friday. Stay tuned for a link for Q1.


    2. Create a directory on nike (cs.uga.edu) named either 4730 or 6730, under this directory create another directory named exactly: HW1 (2 upper case letters and one digit, the digit one). You will submit this directory as your first homework. The content of the directory should have:

      1 image file, 1 text file, and 1 c cprogram.

      These will be decribed below.


      • Image 1: A picture of your self: It should be about (500x800 pixels is a good image size) 

        The name of the image should be in the following format:

        Lastname,FirstName.JPG

        (comma ',' between firstname and lastname, and please use capital letter for the first letter of Lastname, and first letter of FirstName, all other letters should be in lower case). The suffix should be JPG, where all letters are upper case. Example Name:

        Hybinette,Maria.JPG


        If you prefer that your image and name are not displayed on the web site, add a prefix XX to your name.

        XX-Hybinette,Maria.JPG.

        (we use scripts to parse your name and generate the web page, so it is is important that you follow the naming convention outlined).

      • A text file: called HW1.txt
        Please answer these questions in this texts file (please also turn in a hard copy/printout of this file the Tuesday after the assignment is due).

        (2 a) Does a simple calculator require an operating system? If yes (argue why)? If no (argue why)? For this question you may use outside resources (Internet, books, friends, ...) Be sure to cite your references.
        250 word maximum.

        (2 b) What are virtual machines? Explain the relationship between the Java programming language and the virtual machine concept. List at least 2 virtual machines that you are familiar with. (if you don't know please free to use the web for ideas, make sure to cite your resources).
        500 word maximum.

      • A c program called: statistics.c

        Write a simple C-program calculating the mean (average), mode and median from numbers read from standard input.

        • You may assume that numbers are entered one at a time, on a single line (i.e., there is at least one 'new line' between 2 consequitive numbers).
        • the number stream is terminated by a '0' (a sentinel) listed on a single line of input that is terminated by a newline.
        • numbers are integers, negative or positive (32 bit)
        • HINT: http://en.wikipedia.org/wiki/Limits.h (MAX_INT)
        • compare the performance of program with the instructor's (her binary will be provided shortly with a file of numbers). ---> if your's run faster you will receive +2% added to a homework assignment
        • * report the running time of your program with a specific file (I will provide the file Monday afternoon) using the UNIX time command
        • Example file:

          4
          5
          -100
          -22
          -100
          0

          To submit these files, you will need to use the submit program. Since files are under a common subdirectory called "HW1". Execute the below command line whiled directly under the directory you created (and just above the HW1 directory):

    3. submit HW1 csx070 [[ yes please use csx070 for now and not csx730]]

     

Grade Criteria:

Grade 100 points total:
10 points for message sent to class (piazza)list (5 points for 2 sentence introduction, 10 points if it is more interesting).
10 points for emailing image , correct image format (JPG format),
        and naming of file (including adding XXX for if an image restriction indication).

20 points for answering the 2 questiosn (10 pts each question)
60 points for C program.