User Tools

Site Tools


contest_2011-08-23_practice

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
contest_2011-08-23_practice [2011/08/23 08:17] – created jtkorbcontest_2011-08-23_practice [2011/08/23 09:07] (current) jtkorb
Line 1: Line 1:
-====== Getting Started -- Practice Problem ======+===== Getting Started ======
  
-Use this problem to make sure you've got PC^2 working.+Use this practice problem to make sure you've got PC^2 working.  Write a program that reads input and generates output as described below. 
 + 
 +===== Input ===== 
 + 
 +Input consists of one line of text. 
 + 
 +===== Output ===== 
 + 
 +Echo the input line to output.  Print a second line that consists of the string "hello world", except the first letter is capitalized and the sentence ends with an exclamation point. 
 + 
 +===== Sample Input ===== 
 + 
 +    this is a test 
 + 
 +===== Sample Output ===== 
 + 
 +    this is a test 
 +    Hello world!
  
-Write a program that reads a line from standard input, prints it on standard output.  Then print the string "hello world" on a line by itself, with initial caps on both words. 
contest_2011-08-23_practice.1314112662.txt.gz · Last modified: 2011/08/23 08:17 by jtkorb