Difference between revisions of "CSC111 Homework 1 2015"

From dftwiki3
Jump to: navigation, search
(Created page with "--~~~~ ---- =Problem #1= <br /> Edit the program of the HW1 P1 section on Moodle, so that its output becomes: <br /> <source lang="text"> -- 2015 -- Alex is 20 years old, and...")
 
Line 1: Line 1:
 
--[[User:Thiebaut|D. Thiebaut]] ([[User talk:Thiebaut|talk]]) 14:45, 25 January 2015 (EST)
 
--[[User:Thiebaut|D. Thiebaut]] ([[User talk:Thiebaut|talk]]) 14:45, 25 January 2015 (EST)
 
----
 
----
 +
<br />
 +
<bluebox>
 +
In this assignment, each problem requires you to ''edit'' a program that is partly written, and available on Moodle, so that the output of your edited program matches exactly the output specified in the problem.  There may be many different ways to edit a program to make it output the one specified in the problem.  In general, if you have a choice between several modifications, pick the one that is the simplest.  Do not try to rewrite the program, but keep its structure.  It is acceptable to add new statements in some problems.  You must '''evaluate''' each program on Moodle to receive a grade for it.  Make sure you evaluate your programs before the deadline, otherwise you will not receive a grade.  Remember that no extensions are given in this class!
 +
</bluebox>
  
 
=Problem #1=
 
=Problem #1=

Revision as of 14:59, 25 January 2015

--D. Thiebaut (talk) 14:45, 25 January 2015 (EST)



In this assignment, each problem requires you to edit a program that is partly written, and available on Moodle, so that the output of your edited program matches exactly the output specified in the problem. There may be many different ways to edit a program to make it output the one specified in the problem. In general, if you have a choice between several modifications, pick the one that is the simplest. Do not try to rewrite the program, but keep its structure. It is acceptable to add new statements in some problems. You must evaluate each program on Moodle to receive a grade for it. Make sure you evaluate your programs before the deadline, otherwise you will not receive a grade. Remember that no extensions are given in this class!

Problem #1


Edit the program of the HW1 P1 section on Moodle, so that its output becomes:

-- 2015 --
Alex is 20 years old, and was born in 1995
Alex will be 25 in 2020.


Make sure you evaluate the program and receive a grade for it, otherwise your work will not be counted toward the homework grade!

Problem #2


Edit the program of the HW1 P2 section on Moodle, so that its output becomes:

-------------
Smith College
Fiona
-------------


Make sure you evaluate the program and receive a grade for it, otherwise your work will not be counted toward the homework grade!

Problem #3


Be sure to read Chapter 1, Section 6 in Zelle before editing the program of the HW1 P3 section on Moodle, so that its output becomes:

Hello John
How are you?
Hello Emily
How are you?
Hello Lujun
How are you?


Make sure you evaluate the program and receive a grade for it, otherwise your work will not be counted toward the homework grade!