1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Delphi.

Discussion in 'Programming' started by Sixx, Sep 7, 2015.

  1. Sixx

    Sixx presidential #1 Legend

    Recently learnt;
    • Procedures
    • Declaring functions
    • Local variables
    • Modularity in general, really
    • Optimisation
    • Indentation
    • 2D Arrays (Kinda)
    I'm gonna start putting some of my work on GitHub if you guys wanna have a look at it. You probably don't, but it's nice to stay in the loop. (Bad pun intended.)
     
  2. vexus

    vexus ej rockwell's worst nightmare Staff Member Manager Legend Clockwork Customer

    Sweet seeing you continue to do this and not give up like a lot of people.

    Luck to you, Sixxy-boy.
     
  3. Sixx

    Sixx presidential #1 Legend

    Been a while since the last update, but I've been kinda busy with other stuff. But recently I've learnt;
    • Passing by reference and passing by value
    • Records and User Defined data types
    • Arrays and Records
    • Error flagging
    • Functions
    • Debugging and how to use Breakpoints
    Currently I feel really confident with this language, so I wanna get a challenge. If you guys (namely @RJ, @kurozael, @NightAngel, @Vortix, @trurascalz, any other developer really) wants to give me a program to make, I'll make it in the most creative way I can and post the program on here. The program will be a simple console program, but that's to be expected since procedural programming languages aren't really fit for graphical applications, save for multi-paradigm languages like Lua.

    I'd really appreciate the submissions :D
     
  4. duck

    duck Phant0m Legend

    Make a function that does the fibonacci sequence and a function that checks if a number is prime.
     
  5. RJ

    RJ no pay Legend Clockwork Customer

    The FizzBuzz program is usually a good program for grasping loops, but if you're looking for a more practical program then I'd suggest a calculator. Calculators are nice programs to test yourself on because they can be really simple or really complex.
     
  6. trurascalz

    trurascalz C16 Developer Legend

    What languages you learnt/learning @Sixx

    Heres one i did for my coursework:
    This was intended for C# btw
    The TeaTime tea company runs a catalogue business where it sells exclusive teas to customers. The company sells the tea in 2-lb bags only, and the price of a single 2-lb bag is £7.50. When a customer places an order, the company ships the order in boxes. The boxes come in three sizes: the large box holds twenty 2-lb bags, the medium 10 bags, and the small 5 bags. The cost of a large box is £2.00; a medium box is £1.50; and a small box is £1.00. The program must calculate the total cost of the order based on the number of bags and the calculate the number of large, medium and small boxes to ship the bags in. The program should favour sending as many full boxes as possible to save on packing materials. For example, the order of 52 bags will be shipped in three boxes, two full large boxes, one full medium box and one small box containing the remaining two bags.
    Write a C# program to perform a number of analyses on temperature data for a year. Declare an array of double of size 12 to store monthly temperatures for one year and initialise its values to the values shown in the table on page 35. Using the array, the application will find the following:
    The hottest and coldest months in the year, that is the months with the hottest and coldest temperatures, respectively.
    The average temperature for the year.
    The difference in temperature between each month.
    The temperature for a given month. The user will be asked to enter a month as a number 1 to 12 (1 = January, 2 = February, 3 = March and so up to 12 = December) and the program will return the value stored in the array that corresponds to that month.
    Using the following monthly temperature data (source http://www.metoffice.gov.uk/climate/uk/datasets/Tmax/date/UK.txt) in your application by creating an array of double and initialising with this data.

    If you want the source code just pm me
     
    Last edited: Nov 4, 2015
  7. Sixx

    Sixx presidential #1 Legend

    Been pulling my hair out for a while, I've been tasked to do a big program for some fictional company and it's making my teeth itch.
    Sorta struggling with the logic for the Fibonacci sequence, I have the right idea (sorta) but it's not coming to fruition. Working on the prime function, though.
    Haven't attempted the Calculator one yet, I have an idea for it but I'm not truly sure how recursive numbers work.
    Did the Fizzbuzz interpreter as best as I could: https://github.com/Lenamode/programming/tree/master/fizzbuzz

    I'll also give @trurascalz' tea company task a good go :D
     
  8. Sixx

    Sixx presidential #1 Legend

    • Good Coder Good Coder x 1

Previous Readers (Total: 0)