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 3: Complete the following pseudocode based on the algorithm and the variables you declared above.…

    • 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

    1. Problem definition: 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.…

    • 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
  • Better Essays

    Schneider, G.M. & Gersting, J.L., (2013). Invitation to Computer Science. (6th ed.). Boston, Ma: press…

    • 2002 Words
    • 9 Pages
    Better 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

    The author creates the poem though several literary devices, such as internal rhyme, apostrophe, and metaphor. In the metaphor, “Captain” symbolizes the President Lincoln. In the poem, the captain seems that he has tough times and succeeds through his trip, but is ultimately dead before he returns home. Through the captain, the author relates the character with the President Lincoln who led the United States to peace and was assassinated in the middle of the presidency. In addition, the author uses the word “fearful trip” and “the ship” to represent the Civil War and America because the war was long and bloody, and many people in the country past away and suffered during that time, but after the war, people get “prize” which represents the…

    • 366 Words
    • 2 Pages
    Good Essays
  • Good Essays

    It210 Syllabus

    • 2333 Words
    • 10 Pages

    College of Information Systems & Technology IT/210 Version 5 Fundamentals of Programming With Algorithms and Logic…

    • 2333 Words
    • 10 Pages
    Good Essays
  • Powerful Essays

    Output and Average Age

    • 1584 Words
    • 7 Pages

    To begin with, I must first identify the input information. From the problem definition, I gathered that I will have 3 types of input data and they are: Family Members Names, Age, and State of Residence. The output data will consist of the average age of all the members of the family. Also I need an output printout of each family member that reside in Texas. Therefore, in my program I must be able to allow the user to input the information…

    • 1584 Words
    • 7 Pages
    Powerful 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
  • 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

    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
  • 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

Related Topics