Programming Methods

Good Essays
This assignment gave me the opportunity to computerize a manual membership system of Richard’s Tennis Club using various methods and techniques. The computerization of this system introduced several advantages but also created some limitations.
The first report in task 1 had to contain a list of all the paid up members. To compile this list, the expiry date of each member was calculated depending upon the type of membership. Once the expiry date was set, this date was compared to the variable ‘today’ which was assumed to contain today’s date (or in our case the date in which the report is being generated). If the program finds that the expiry is greater or equal to today’s date, then the record will be listed in the output report as this would mean that the member is active.
The second report in task 1 had to contain a list of all the members that are going to expire in the next month and a total payment due if all members renew their membership. At first, the expiry date of each member was calculated with the same method used in report 1. The expiry date contained the due month in which the subscriber must renew his membership. The due month was then compared with the next month and if these were equal this would mean that the member will expire in the next month therefore included in the report. To calculate the next month, we used a variable of type date which was assumed to contain the current month. The next month would then be equal to the current month + 1.
In task 2 the pseudo code for both reports was written. In both reports an array of records was used to store the membership details. The array contained 100 of these records. This created a limitation to our program but could be easily modified to any bigger value which we want. In both reports a FOR loop was used since the maximum number of members is known.
In task 3 question ‘a’, a REPEAT / UNTIL loop was used since the program had to repeatedly check the members one by one until a true

You May Also Find These Documents Helpful

  • Good Essays

    Avr Programming Methods

    • 1067 Words
    • 5 Pages

    AVR Programming Methods There are many ways to program AVR microcontrollers. Since many people ask about different ones at one time or another, I thought I’d outline them here so that their questions can be answered quickly and efficiently. Please forgive me if I miss a method or make an error. 1 - In System Programming (ISP) Supported By: Most MEGA and TINY devices Supported Programmers: AVRISP MKI/II, JTAG MKII, STK500, STK600, Dragon, AVRISP clones, AVR910 Programmers, AVRONE In System…

    • 1067 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    Table of Contents Task 1 3 Report 1 4 Logical Data Structure 4 Preliminary Program Structure 5 Program Specification 6 Report 2 9 Logical Data Structure 9 Preliminary Program Structure 10 Program Specification 10 Task 2 14 Pseudo code for Report 1 15 Pseudo code for report 2 16 Flowcharts for Report 1 18 Flowchart for Report 2 19 Task 3 21 Pseudo codes for a procedure that checks whether a member is paid-up member. 22 Pseudo code for main menu 23 Flowchart for Main menu 24 Testing…

    • 1203 Words
    • 5 Pages
    Powerful Essays
  • Powerful Essays

    Research" Mar. 2007, IST Linear Programming, an introduction MIGUEL A. S. CASQUILHO IST, Universidade Técnica de Lisboa, Ave. Rovisco Pais, IST; 1049-001 Lisboa, Portugal Linear Programming is presented at an introductory level, mainly from the book by Hillier and Lieberman [2005], abridged and adapted to suit the objectives of the “Operational Research” course. It begins with segments of its third chapter. Key words: linear programming; simplex method. I. Fundamentals and scope Based…

    • 4392 Words
    • 18 Pages
    Powerful Essays
  • Good Essays

    Developing Method: Extreme Programming After analyzing and evaluating the team members; knowledge and experience programming with C++, and members programming strength and weakness we have agreed to use an Agile method of program development. After getting to know the different Agile metrologies we concluded that Extreme Programming practices and principles would be the one that will fit the best our team experience, strength, weakness and attributes. Other reason why Extreme Programming was chosen…

    • 634 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Quantitative Methods in Business – Linear Programming 1- Statement of the Problem: Middle East for investment offers a bundle of investment options in many types of securities. Mr. Brown, an investor, would like to invest $ 5 million in various securities. He wishes to maximize his yearly profit over the next year. The investment company offered him a portfolio including Bonds, Stocks, Gold and Land. The expected return is 6% for Bonds, 14% for Stocks, 10% for Gold and 5% for Land. For diversification…

    • 830 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Simplex Methods of Linear Programming The graphical method is the more popular method to use because they are easy to use and understand. Working with only a few variables at a time they allow operations managers to compare projected demand to existing capacity. The graphical method is a trial and error approach that can be easily done by a manager or even a clerical staff. Since it is trial and error though, it does not necessarily generate the optimal plan. One downside of this method though is…

    • 552 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    ~~~~~~~~~~~~~~~~~~~~ www.MathWorks.ir ~~~~~~~~~~~~~~~~~~~~ An Introduction to Programming and Numerical Methods in MATLAB ~~~~~~~~~~~~~~~~~~~~ www.MathWorks.ir ~~~~~~~~~~~~~~~~~~~~ S.R. Otto and J.P. Denier An Introduction to Programming and Numerical Methods in MATLAB With 111 Figures ~~~~~~~~~~~~~~~~~~~~ www.MathWorks.ir ~~~~~~~~~~~~~~~~~~~~ S.R. Otto, BSc, PhD The R & A St Andrews Fife KY16 9JD Scotland J.P. Denier, BSc (Hons), PhD School of Mathematical Sciences…

    • 61926 Words
    • 248 Pages
    Powerful Essays
  • Powerful Essays

    programming

    • 21645 Words
    • 157 Pages

    NETWORK PROGRAMMING BIT 4206 BIT 4206 Network Programming Course Outline Prerequisites: BIT 3102 Network Management BIT 3201 Object Oriented Programming Objectives: • By the end of the course the learner should be able to: Have knowledge about Unix Technologies (IPC, POSIX threads, Unix file system) • Be able to develop client-server network applications on the internet, based on UNIX/linux Course Outline An overview of C++ Inheritance, Polymorphism, Encapsulation, Templates, Dynamic…

    • 21645 Words
    • 157 Pages
    Powerful Essays
  • Good Essays

    Programming

    • 684 Words
    • 3 Pages

    stations can choose their own programming under Section 326 - Communications Act - gives broadcasters freedom from censorship. American Radio has ‘format freedom’ Task - provide attractive programming to meet informational and entertainment needs of audience Matrix of Radio Programming Local Programming - original programming produced by radio station Prerecorded or Syndicated Programming - obtained from a commercial supplier outside the station Network Programming - obtained from radio nets…

    • 684 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Programming

    • 1575 Words
    • 7 Pages

    Lab Exercises MS1.2 Data Structures and Algorithms Using C++ Lab – 1 (2 Hrs Real Time) 1.1 Write a C + + program to display any message. 1.2 Sum of digit 1.2.1 Reverse the number 1.2.2 Factorial of a number 1.2.3 Fibonacci series 1.2.4 Armstrong number checking 1.2.5 Prime no checking 1.2.6 Palindrome Checking 1.2.7 Odd or even number. 1.2.8 Perfect number checking. Lab – 2 (2 Hrs Real Time) 2.1 2.2 2.3 2.4 2.5 Write a program to calculate the following: Find Maximum of N numbers. Find Minimum…

    • 1575 Words
    • 7 Pages
    Good Essays