Preview

Computer and Mathematical Sciences: Programming Paradigms

Satisfactory Essays
Open Document
Open Document
477 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Computer and Mathematical Sciences: Programming Paradigms
| | 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

  • Satisfactory Essays

    Step 2: Think of good variable names for the following pieces of data that will need to be stored with in this program.…

    • 777 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    This is our first individual assignment for Programming unit this semester. This assignment was given in December 2013, and submission date is on 10th February 2014.…

    • 1859 Words
    • 8 Pages
    Good Essays
  • Satisfactory Essays

    A. Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode.…

    • 467 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Concept Programing

    • 443 Words
    • 3 Pages

    3. (15%) Design a state diagram to recognize one form of the comments of the C-based programming languages,…

    • 443 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode.…

    • 345 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    week 1 assignment

    • 1379 Words
    • 6 Pages

    Drake, E., & Venit, S. (2011). Prelude to programming: Concepts and design (5th ed.). Boston, MA: AddisonWesley.…

    • 1379 Words
    • 6 Pages
    Satisfactory Essays
  • Best Essays

    Makerere University, Faculty of Computing and Information Technology, P.O. Box 7062, Kampala, Uganda, East Africa jlubeg@cit.mak.ac.ug 2 Department of Computer Science, University of Reading, P.O. Box 225, Whiteknights, Reading, Berkshire, RG6 6AY, United Kingdom shirley.williams@reading.ac.uk…

    • 4910 Words
    • 20 Pages
    Best Essays
  • Good Essays

    It210 Syllabus

    • 2333 Words
    • 10 Pages

    Objectives 1.1 Describe the importance of using a structured, modular approach when creating program requirements, design, and code. 1.2 Identify how a computer processes and stores data. Read the course description and objectives. Read the instructor’s biography and post your own. Read Appendix A. Read Ch. 2 of Prelude to Programming. Read Ch. 3 of Prelude to Programming.…

    • 2333 Words
    • 10 Pages
    Good Essays
  • Powerful Essays

    Output and Average Age

    • 1584 Words
    • 7 Pages

    Your final project will be to analyze, design, and document a simple program that utilizes a good design process and incorporates sequential, selection and repetitive programming statements as well as at least one function call and the use of at least one array. The specific problem you need to solve for the final project is: Design a program that will allow a user to Input a list of your family members along with their age and state where they reside. Determine and print the average age of your family and print the names of anyone who live in Texas.…

    • 1584 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    Creative Writing

    • 813 Words
    • 4 Pages

    A. Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode.…

    • 813 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    I have learned many things from this class as it relates to computer programming. There are a few areas covered in this course by either the text or in our weekly class discussions about computers and computer programming that stood out to me. This paper is broken up into two discussions. The first part will cover general ideas and skills involved with computers and computer programming. The second part of my paper will go over some topics covered in the text for the class. Some areas that were discussed are as follows: Logic and Decision Structures, Using Repetition Structures, Checking user input for errors and lastly, Using Arrays for more Advanced Programs.…

    • 1406 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Java Environments

    • 1345 Words
    • 14 Pages

    CSCI 1101 Computer Science II Assignment No. 2 Date Given: January 31, 2011 Due: February 18, 2011 David Mongrain B00554371 Parking ticket simulator ParkedCar.java //Object representation of a car. public class ParkedCar { private String carMake; private String carColor; private int carLicense; //Constructs the car, with given car make, car color, and car license.…

    • 1345 Words
    • 14 Pages
    Satisfactory Essays
  • Powerful Essays

    I entered the portals of the prestigious Apeejay College of Engineering, Sohna, Gurgaon, Maharishi Dayanand University and became an ambitious and aspiring student. Becoming inextricably connected with my specialty, I immersed myself in the most diligent learning of every course related to my specialty and derived immense pleasure from every programming experiment. Equipped with a sensitivity to…

    • 1425 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    robot vehicle

    • 698 Words
    • 3 Pages

    Lets get very primitive. Suppose we have 0 defined and want to build the nonnegative integers and entire number system. We define the successor operation S(x) that takes a number x to its successor X+1. This gives one the nonnegative integers N0= {0,1,2….}…

    • 698 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Library System Thesis 5

    • 523 Words
    • 3 Pages

    Prepared and submitted by Mr. Jeric P. Magada in partial fulfillment of the requirement for the degree Bachelor of Science in Computer Science, has been examined accepted and recommended for final and oral examination.…

    • 523 Words
    • 3 Pages
    Satisfactory Essays

Related Topics