CSC 5 - Assignments
Assignment #18
Chapter 12: Programming Challenges #11, #12 (Corporate Data Output and Corporate Data Input)
Work as a team of two programmers, assignment is due 12/9/15. If you want to, you may write one program
that is menu driven, that does both programming challenges.
Lab 12/02/15
Pair Programming (Teams of two) for all three parts.
Part 1: Chapter 11 Algorithm Workbench #19, #20
Part 2: Chapter 11 Programming Challenge #3
Part 3: Chapter 11 Programming Challenge #4 (Assignment #17)
Due by beginning of lab on 12/9/15
Lab 11/30/15
Program Challenge #11 Chapter 10 - Case Manipulator
Pair Programming - work in pairs, document who did what tasks in the work.
Due: 12/2/15 by beginning of lab.
In text, they specify argument to be a C-String, you may use either C-String or string class.
Optionally, can you write pseudocode or draw a flowchart of these functions before writing a
single line of code?
If you want to do some flowcharting, you can use either gliffy.com or draw.io, as they are both excellent
online diagramming tools!
Assignment #16
Chapter 10 Programming Challenge #19 ( Check Writer ). This assignment must be done as individual work, and is due no later than
December 4th, 2015. Make sure to include your 3-4 sentence write up for a potential 40 points. Can you find a way to put in comma
seperators for thousands of dollars? (E.g. the example in the text, instead of outputting $1920.85, have it output $1,920.85)
Note: Instead of input validation of up to $10,000, have input validation for up to $1,000,000.
Lab 11/23/15
Test Drive Team Programming ( teams of no more than 4 members ). Do Chapter 9 Programming Challenge #3 ( Test
Scores with dropping lowest score ). Due via email from one team member. Be sure to document what was done
by each team member.
Due by 5:15PM on 11/25/15.
Assignment #15
Write a program named: word_sort that does the following:
Get the input text file name from the command line, and the output text file name from the command line.
Read in the list of words from the input text file either as an array of strings or a vector of string, sorts
the list of words, and outputs the sorted list of words to the output text file specified on the command line.
You can use either bubblesort or selectionsort to do the sorting.
The program should be run as follows: word_sort words.txt sorted_words.txt
Where words.txt is a text file containing a list of words (you can have this file be named any name you want), and
sorted_words.txt is the output file for the sorted list of words (again, you can have this file named any name
you want). I have a sample words.txt file you can use, found here:
words.txt
If you need a skeleton .cpp file of the assignment, you can find it here:
word_sort_skel.cpp
It is necessary to run this program from the command line.
For extra credit (5 points): have an additional command line argument that allows the user to specify if they want to
sort the list from A-Z (smallest to largest), or from Z-A (largest to smallest). I leave it up to you to decide what
you want the command line option to be named.
This assignment is due 12/2 by the beginning of lab.
Assignment #14
Chapter 8 Programming Challenges #2 (Lottery Winner), and #3 (Lottery Winner Modification - using Binary Search).
Maximum credit of 40 points is possible with working programs. Due by end of lab on November 25th, 2015.
Read up on Chapter 9 and be prepared for our discussion on Chapter 9 for Monday 11/16/15!
Assignment #13
Chapter 7 Programming Challenge #7, must be compilable and working program. Maximum credit of 40 points
is possible with working programs. Due by end of lab on November 18th, 2015. (Hint: you may find our discussion
example project for reading in a textfile with the size of the array being unknown, might be useful!)
Read up on Chapter 8 and be prepared for our discussion on Chapter 8!
Assignment #12
Chapter 7 Programming Challenge #4, must be compilable and working program. Maximum credit of 40 points
is possible with working programs. Due by end of lab on November 11th, 2015.
Assignment #11
Chapter 7 Programming Challenges #1, #2; must be compilable and working program. Maximum credit of 40 points
is possible with working programs. Due by November 11th, 2015.
Assignment Chapter 7 Reading: (Extra Credit)
Read/study Chapter 7 (Arrays) Sections 1 through 6, formulate five questions from your reading/study of
Chapter 7. Email your five questions, this assignment is due by the beginning of class on Wednesday, 10/28/15 for 10 points.
Assignment #10
Chapter 6 Programming Challenges #1 (Markup) must be compilable and working program. Maximum credit of 40 points
is possible with working programs. Due by end of lab on October 21st, 2015.
Assignment #9
Chapter 4 Programming Challenges #13 (Book Club Points) must be done using switch/case and be a compilable
and working programs. Maximum credit of 40 points is possible with working programs. Due by October 21st, 2015.
Assignment #8
Chapter 4 Programming Challenges #12 (Software Sales), #15 (Shipping Charges) must be compilable and working
programs. Maximum credit of 40 points is possible with working programs. Due by October 21st, 2015.
Assignment #7
I want you to review Chapters 2,3, and 4. Do the following Algorithm Workbenches: Chapter 2: #27/28, Chapter 3: #25-27, and
Chapter 4: #31-35. All of the workbench problems must be compilable and working programs. Maximum credit of 40 points is
possible with working programs. Due by the end of lab on Wednesday, September 30th, 2015.
Assignment #6
Chapter 6 Programming Challenge #7 (Celsuis Temperature Table), also have your program output the table to a text file (you
may name this file whatever you want to name it); due no later than October 21st, 2015 by beginning of class. Make sure to include your
write up summary for a maximum of 40 points.
Assignment #5
Chapter 5 Programming Challenge #1 (Sum Of Integers), due no later than October 21st, 2015 by beginning of class. Make sure to include your
write up summary for a maximum of 40 points.
Assignment #4
Take the code from the source code below, TimeCalculator.cpp, and have it properly output:
0 hours
0 minutes
Correctly, meaning if we have something like 3 hours 0 minutes 33 seconds, if the user selects 10833 seconds.
This assignment is due through email, due no later than October 21st, 2015 by the beginning of class. Include the 3-4 sentence write up, for a
maximum of 40 points.
Source code:
TimeCalculator.cpp
Assignment #3
Do the Chapter 3, Programming Challenge #18 (Titled: Interest Earned). This assignment is due no later
than October 21st, 2015, for a maximum of 40 points. The program must work correctly, and you must
include your 3 to 4 sentence write up.
Assignment #2
Complete the Chapter 2 programming challenges, #2 (Sales Prediction), #3 (Sales Tax), and
#4 (Restaurant Bill). The programs must compile and run correctly foooooor full credit. Make sure to include
youe three to four sentence summary of what you learned from these programming challenges. This assignment is
due no later than October 21st, 2015.
Assignment #1
E-mail to my faculty email address a short biographical write up about yourself. This can
be what your academic goals are, what you are planning for a career, your interests, etc.
This assignment is due no later than October 21st, 2015, for a maximum of 40 points.
. . . . . . . . . ( end of section CSC 5 - Assignments) <<Contents | Index>>