• T1 - Programming Practical 6 Alpha Sting

    Dec 3, 2009

    Analysis
    Calculate the averages and standard deviations of an array but with a moving fixed scope; store it to an array and print the result. i.e. Find the average and standard deviations of the data between index 0 and 4.
    Code
    Syntax highlighting thanks to pastie.org

  • T1 - Programming Practical 5 Alpha Sting

    Dec 3, 2009

    Note: I did not complete this in time for it to count. I did it to prove to myself that I could. I also believe that it exceeds the date range required of it.
    Analysis
    A program should be created to calculate what day of the week a provided date between 1st January 1900 and 1st January 2010 is passed to it falls on.
    Design
    The user should be able to enter a series of dates and be given the results for the dates they supply. It is not required for a range of dates as these would just be consecutive days and be irrelevant to the original program.
    The user should input a date YYYY, DD, MM.
    The new solution should be created using existing code from the original solution in order to reduce the amount of work required.
    Code
    Code
    Syntax highlighting thanks to pastie.org

  • T1 - Programming Practical 7 Alpha Sting

    Dec 3, 2009

    This practical's task was to use a 2 dimensional array to store currency transfers. However the alpha sting did not just set these values hard coded but allowed the user to specify the conversion rates. The Program also allowed the user to specify which currencies they were using up to a predefined amount of 4 different currencies.
    It was a conscious decision to use the literal array indexes in the user input as it saved the amount of code and thinking whilst debugging.
    Code
    Syntax highlighting thanks to pastie.org

  • End of Autumn Term Approaching

    Nov 29, 2009

    It's fast approaching. We have been set and informed of the work that we have before, during and after the Christmas break.
    1. SE1SC9 - Coursework (10%), Online test (5%)
    2. MA115 - Assessed Homework (10%)
    3. MA116 - Assessed Homework (15%)
    4. SE1SA5 - Programming test (~10%)
    Out of those I'm still partially unsure what I will be doing for the Coursework and also what the Programming test will be like. It is a written test. So I would think that it would be pseudo code, finding errors, writing a small set of code and possibly some questions on certain aspects of it.
    I must begin to work on the revision of things before going back home over Christmas, so as to settle into working as soon as possible back home. I am hoping to complete the majority of things before leaving for Christmas. We'll see how this plays out.
    On a brighter note. I seem to be recovering from my viral infection. Just my rib still hurts - possibly fractured, though not the bone itself but the cartilage surrounding it. Painkillers and proper breaths will be the way forward (having had it before).