Colorado State University

This file defines the header for each page. An optional "icon" image (I use the textbook):

Replace this with info about this class:

CS253: Problem Solving with C++

Spring 2013

HW 1

Links to the various pages for this class:

Wish I could do this: * Schedule

CS253 HW1: Hello there!

Description

Write a C++ program called initial.cc that converses with the user, as illustrated in the sample runs.

Sample Runs

Here are several sample runs, where % is my prompt. Your output must match exactly.

% g++ -o initial initial.cc
% ./initial
Your name? Jack
I'll call you J.
Your age? 55
You were born in 1958, more or less.
% ./initial
Your name? John R. Applin
I'll call you JRA.
Your age? 30
You were born in 1983, more or less.
% ./initial
Your name? surely you realize that I have no human name
I'll call you syrtIhnhn.
Your age? 100
You were born in 1913, more or less.

Requirements

If you have any questions about the requirements, ask. In the real world, your programming tasks will almost always be vague and incompletely specified. Same here.

How to submit your homework:

Turn in the file initial.cc. Do not turn in the executable file. Follow the directions on the homework page.

How to receive negative points:

Turn in someone else’s work.

Page: Main.HW1
Modified: January 06, 2013, at 09:48 PM
Wiki: pmwiki-2.2.35
CS Department
Apply to CSU | Contact CSU | Disclaimer | Equal Opportunity
Colorado State University, Fort Collins, CO 80523 USA
© 2012 Colorado State University