MAE 9 HW1

MAE 9 HW1 - Brian Jones Part (ii): Brian Jones Brian Jones...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
MAE 9: Homework #1, Spring 2011 Due on Tuesday, April 5, by 9pm Write a C program (hw1.c) that: (a) prints your name three times on the terminal screen each time the name should be printed in a separate (consequtive) line. (b) prints your name three times on the terminal screen, all appearing in the same line; leave three empty spaces between each writing of the name in this line. Leave one empty line at the beginning of the output, two empty lines between parts (i) and (ii), and two empty lines at the end. Also, insert Part (i) and Part (ii) designations as shown below. ....................................................................... Your output should look like this: Part (i): Brian Jones Brian Jones
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Brian Jones Part (ii): Brian Jones Brian Jones Brian Jones ........................................................................ Notes: 1. Turn in the program by using the tool turnin: turnin -c me9x hw1.c 2. Turnin renames your file with your username, so that we know who is the author. There is no need for you to change the name of the homework files. 3. Each time you submit something with turnin, you overwrite the previous file. /* My first program */ #include <stdio.h> main(void) { printf("\n"); printf("Part (i):\n\n"); printf("Brian Jones\n"); printf("Brian Jones\n"); printf("Brian Jones\n\n\n"); printf("Part (ii):\n\n"); printf("Brian Jones Brian Jones Brian Jones\n\n"); }...
View Full Document

Ask a homework question - tutors are online