Principles of Programming Languages - F15

CSE 340

Project 1

Project 1 is due 8/31/15 on or before 11:59:59pm MST (deadline extended 24 hours to 9/1/15 11:59:59pm MST).

Part 1 (10 points)

Sign up for the course mailing list. Please provide your AUSRITE ID number when you register so that we can give you credit for signing up.

Part 2 (90 points)

Write, in C or C++, a slightly more advanced hello world application.

The interface to your application is this: read (from standard in) a string up to a newline. This string will be a base-10 integer. Then, your program will output (to standard out) that many times the string “Hello World\n” (with the \n representing a new line and without the “).

Implementation

Your implementation must conform to the CSE 340 projects guideline that the lead TA, Mohsen, has written. This guideline will be used for all the projects in the class, so take this opportunity to set up your programming environment and to become familiar with the submission system.

Example

Given an input of:

1

Here is your program’s expected output:

Hello World

Or, more precisely, reading from standard in “1\n” causes your program to output “Hello World\n”. Note that your program must be precise. Output of “Hello World” is not correct (lack of trailing new line), “Hello  World” is not correct (multiple spaces between the words), “HelloWorld” is not correct (no space between the words), and “Hello World\r\n” is not correct (the newline character must be \n and only \n).

Given an input of:

5

Here is your program’s expected output:

Hello World
Hello World
Hello World
Hello World
Hello World

Submission

Submit your project here before the deadline.

Note

The programming on this project is meant to be easy. The goal is to familiarize you with the submission system/process. If the programming of this assignment takes you significantly longer than an hour, you should seriously considering waiting to take this course until you improve your programming skills.