Assignment 5

Assignment 5 - Add the information how many students fall...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Page | 1 Assignment 5 CSC1254/1, Fall 2011 A SSIGNMENT 5, CSC1254/1, F ALL 2011 Introduction to Programming with C++ II, Hartmut Kaiser http://www.cct.lsu.edu/~hkaiser/fall_2011/csc1254.html Due: Tuesday, November 10 th , 2011 Submitted electronically: before 12:00 PM Please submit the tasks below as files named task1.cpp, task2.cpp , etc . Create the files inside a new sub-directory called prog5 . The files will have to be submitted at the same time by invoking a submission command similarly as described in the document ‘Submitting homework (Assignment 3, Appendix)’ available from the course homepage. 1. Reimplement the frame() and hcat() operations manipulating ‘pictures’ to use iterators. The original code can be downloaded here: http://www.cct.lsu.edu/~hkaiser/fall_2011/csc1254/code/pictures.cpp . 2. Extend the grading program to assign and print letter grades by ranges (in addition to the percentage): A 90-100 B 80-89.99 C 70-79.99 D 60-69.99 F < 60
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Add the information how many students fall into each category to the generated output. Download the original program to modify from here: http://www.cct.lsu.edu/~hkaiser/fall_2011/csc1254/code/median_grades.cpp . 3. Extend the word counting program (you can download the original program here: http://www.cct.lsu.edu/~hkaiser/fall_2011/csc1254/code/counting_words.cpp ) to produce its output sorted by occurrence count. That is, the output should group all the words that occur once, followed by those that occur twice, and so on. 4. The cross-reference program could be improved: as it stands, if a word occurs more than once on the same input line, the program will report that line multiple times. Change the code so that it detects multiple occurrences of the same line number and inserts the line number only once. You may download the original program from here: http://www.cct.lsu.edu/~hkaiser/fall_2011/csc1254/code/cross_reference.cpp ....
View Full Document

This note was uploaded on 12/29/2011 for the course CSC 1254 taught by Professor Blanks,l during the Fall '08 term at LSU.

Ask a homework question - tutors are online