CS253

CS253: Software Development with C++                

Spring 2017                

HW 0                

CS253 HW0: Light Bulb Joke                

Purpose                

The purpose of this assignment is to make sure that you can follow instructions, login to a Linux system, compile a C++ program, and check in homework. This way, you’re sure that your login and password work before you need them for homework #1. This assignment is not optional.                 

Description                

In this assignment, you will write a program called bulb.cc. It will answer the question, “How many CU students does it take to change a light bulb?”                 

Sample run                

In the following example, user input looks like this. The percent sign, “%”, is my shell prompt.                 

    % g++ -Wall bulb.cc
    % ./a.out
    Three—one to hold the light bulb and two to turn the ladder!
    %

(Joke copied from Wikipedia.)                 

Rules                

How to submit your homework:                

Use web checkin, or Linux checkin:                 

    ~cs253/bin/checkin HW0 bulb.cc

How to receive negative points:                

Turn in someone else’s work.                 

Modified: 2017-01-30T19:29                 

User: Guest                 

Check: HTML CSS
Edit History Source
Apply to CSU | Contact CSU | Disclaimer | Equal Opportunity
Colorado State University, Fort Collins, CO 80523 USA
© 2015 Colorado State University
CS Building