Stuck Between a Rock and a Hard place

This is a discussion on Stuck Between a Rock and a Hard place within the C++ Programming forums, part of the General Programming Boards category; Hi, I am in between a rock and a hard spot at the moment. This is an assignment question which ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Location
    Australia
    Posts
    212

    Stuck Between a Rock and a Hard place

    Hi, I am in between a rock and a hard spot at the moment.

    This is an assignment question which I am working on, and I have progressed so far. But now I am not going anywhere, the assignment is due friday, and Im afraid I won't be able to completely finish it.

    If someone is willing to help me with this question please reply and I will post/email you the code which I have done. I would be eternally gratefull.

    (Since this is an assignment I would prefer not to post the code because other student at the Uni do use this web site, so if it is possible can I email you)

    Here is the assignment question....


    In this assignment, we shall work with one of the major class systems in the program, namely the report printer classes, found in rportptr.*. (See description here.)

    Your task will be to replace horrible, antiquated "legacy" code for one of the program's reports with modern object-oriented code that uses the report-printer classes. The report you must rewrite is the School Assessment Record, the code for which is found in mark5b.cpp.

    If you look in that file, you will notice how ugly, repetitive code is used to keep track of lines on a page, printing headers and footers, etc. All this code will disappear when the report_printer class is used, as that class contains well-debugged code for handling all those details.

    To see how the report_printer class is used, there are two examples in the application:

    mark5a.cpp: (printing raw submarks)
    mark5c.cpp: (printing the examiner's return)


    The "rportptr.h" file contains extensive documentation on the workings of the report-printing class system.

    To test print a School Assessment Record, you must use the "End of semester reports" option on the Print Report Menu. (This prints both an Examiner's Return and a School Assessment Record.)

  2. #2
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    show us some code

  3. #3
    Registered User
    Join Date
    Sep 2001
    Location
    Australia
    Posts
    212
    Here's some files in a zip file

    screen1.txt = What the output should be like
    screen2.txt = The output Im getting
    mark5b.cpp = The file I have changed (the one causing problems)
    *.h = the declarations and explanations on how the classes I need to use are implemented.
    mark5b.ori = The original old C style code and functions.

    See first post to understand the task at hand. Email me or post to get any extra files or info.

    Thanks heaps, really appreciate it.

    kwigibo
    Attached Files Attached Files

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21