Computer and Mathematical Sciences: Programming Paradigms

Satisfactory Essays
| | CSC305 – Programming Paradigms | | | submission date: 06 September 2013 | | INDIVIDUAL ASSIGNMENT | | FULLNAME | U. MUHAMMAD HAIRI BIN U. ISKANDAR | UITM NUMBER | 2011602528 | GROUP | JCS1105 C | PROBLEM SET | C | CSC305 - Programming ParadigmsCS110 - Diploma in Computer Science, UiTM Johor, MalaysiaLecturer:MISS NAFISAH BINTI AMINFaculty of Computer & Mathematical Sciences |

Individual ASSIGNMENT
Table of content Topics | Page | i) Table of Content ii) Pascal Program a. Source Code b. Sample Input/output c. Project Compilation Status | 12-5 |

program individualAssignment;Uses Crt , sysutils;const strState : array[1..2] of string = ('Selangor','Johor'); strMonth : array[1..6] of string = ('January','February','March','April','May','June');type rainfallRec = record state , city : String; amountRain : array[1..6] of Integer; end;procedure getRainfall(var rainfall : array of rainfallRec);var i,j : integer; intState : Integer;begin for i := 1 to 6 do begin write('Enter district: '); readln(rainfall[i].city); writeln('Select state :'); writeln('1) Selangor'); writeln('2) Johor'); readln(intState); rainfall[i].state := strState[intState]; for j := 1 to 6 do begin write('Enter rainfall for ' + strMonth[j] + ' :'); readln(rainfall[i].amountRain[j]); end; clrscr; end;end;function countRainAmountExceedTenK(rainfall :array of rainfallRec) : integer;var i, count : Integer;begin count := 0; writeln('rainfall more than 100, 000 liter in the month of March'); for i:= 1 to 6 do begin if (rainfall[i].amountRain[3] > 100000) then begin writeln('City : ' + rainfall[i].city); writeln('State : ' + rainfall[i].state); count := count + 1; end; end; countRainAmountExceedTenK :=

You May Also Find These Documents Helpful

  • Powerful Essays

    Mathematical Programming

    • 18473 Words
    • 55 Pages

    Mathematical Programming: An Overview 1 Management science is characterized by a scientific approach to managerial decision making. It attempts to apply mathematical methods and the capabilities of modern computers to the difficult and unstructured problems confronting modern managers. It is a young and novel discipline. Although its roots can be traced back to problems posed by early civilizations, it was not until World War II that it became identified as a respectable and well defined body of…

    • 18473 Words
    • 55 Pages
    Powerful Essays
  • Powerful Essays

    Programming paradigms

    • 1709 Words
    • 7 Pages

    Object-Oriented Programming 1. INTRODUCTION During developing computer science appeared a huge problem - how explain to computer what people need. Since that moment there were a lot of different and interesting suggestions, but the most suitable solution was creating a programming languages. One of the most colossal type of programming languages is programming paradigm. "A programming paradigm is an approach to programming a computer based on a mathematical theory or a coherent set of principles…

    • 1709 Words
    • 7 Pages
    Powerful Essays
  • Powerful Essays

    Programming Paradigms

    • 2262 Words
    • 9 Pages

    Object-Oriented Programming Paradigm By Daniel C. Williams MCIS 611 Instructor: Dr. Frank J. Mitropoulos Research Report Graduate School of Computer and Information Sciences Nova Southeastern University April 25, 2010 Table of Contents Abstract 3 Introduction 4 Review of Literature 5 Data and Analysis 7 Data Qualities 7 Object-Oriented Programming Languages 9 Eiffel 9 Smalltalk 10 Ruby 10 Java 11 C++ 12 Featured Components 13 Encapsulation 13 Polymorphism…

    • 2262 Words
    • 9 Pages
    Powerful Essays
  • Powerful Essays

    evolution of programming has seen a number of programming language generations and programming paradigms or styles. Write notes describing and distinguishing the different programming paradigms that have been used to date and also highlight the merits and demerits of each programming paradigm. (30) A programming language is a system of signs used to communicate a task/algorithm to a computer, causing the task to be performed. The task to be performed is called a computation, more broadly, a computer language…

    • 2576 Words
    • 11 Pages
    Powerful Essays
  • Good Essays

    Programming Paradigms Programming languages • A Programming language is a notational system for describing tasks/computations in a machine and human readable form. • Most computer languages are designed to facilitate certain operations and not others: numerical computation, or text manipulation, or I/O. • More broadly, a computer language typically embodies a particular programming paradigm. Characteristics of a programming language: Every language has syntax and semantics: • Syntax: The syntax…

    • 1117 Words
    • 5 Pages
    Good Essays
  • Good Essays

    P1 Programming paradigms

    • 768 Words
    • 3 Pages

    Programming paradigms What is programming? Programming is writing, designing and maintaining the source code of a computer programme. There are 3 different types of programming: Procedural Object orientated Event driven Procedural Procedural programming is a term used to describe the way which a computer programmer writes a program. This method of developing software which is also called an application revolves around keeping code as concise as possible. Its operators by reading the tasks that are…

    • 768 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Computer Programming

    • 2142 Words
    • 7 Pages

    Computer programming (often shortened to programming) is a process that leads from an original formulation of a computing problem to executable programs. It involves activities such as analysis, understanding, thinking, and generically solving such problems resulting in an algorithm, verification of requirements of the algorithm including its correctness and its resource consumption, implementation (commonly referred to as coding[1][2]) of the algorithm in a target programming language. Source code is…

    • 2142 Words
    • 7 Pages
    Powerful Essays
  • Powerful Essays

    Computer programming

    • 958 Words
    • 13 Pages

    to Computers and C++ Programming 1       What is Computer? Computer Organization Computer Languages C++ Your First Program in C++ Variables and Operators Computer Programming (HKU SPACE HDIT 10/11) 2 Computer Programming (HKU SPACE HDIT 10/11) 3  Computer ◦ Device capable of performing two major functions 1. 2. Computations Making logical decisions  Computer programs  Hardware ◦ Sets of instructions used by computers to process…

    • 958 Words
    • 13 Pages
    Powerful Essays
  • Satisfactory Essays

    Computer Programming

    • 530 Words
    • 4 Pages

    Registration Now. RESEARCH DOCUMENTS BOOK NOTES AP NOTES StudyMode - Premium and Free Essays, Term Papers & Book Notes Home » Chemistry Computer Programming Research Paper By chii2x | March 2013 Zoom InZoom Out Page 1 of 16 Factors Affecting the Performance of the High School Senior Students of St. Peter’s College of Ormoc in Computer Programming A.Y. 2012-2013 A Research Paper Presented to the class of Mr. Francisco V. Calub St. Peter’s College of Ormoc in Partial Fulfillment…

    • 530 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Common Declarative Programming Paradigms Engineering involves numerous paradigms and concepts that need to be used and applied at required places for making complete use of technology. One field of engineering that has gained significant importance in the last few years is software engineering. Due to the development and adaptation of different technologies in different areas and fields, different software is used for different purposes. And thus, different programming methodologies and concepts…

    • 471 Words
    • 2 Pages
    Good Essays