شباب مسااعدتكم ف الفورتران - ics101 ##

الموضوع في 'علوم الحاسب الآلي' بواسطة Euler, بتاريخ ‏1 يناير 2011.

  1. Euler

    Euler عضو

    انضم:
    ‏10 سبتمبر 2009
    المشاركات:
    1,480
    التخصص:
    Electrical Engineer
    الجامعة:
    KFUPM
    سنة التخرج:
    2015
    نقاط الجائزة:
    0
    الوظيفة:
    not yet
    الإقامة:
    Jedd_Dhah
    التقييمات:
    +18 / 0 / -0
    شباااب لاهنتو مساعدة ف هالاكسرصايص ,,, :/:


    لاب 12 ,,,

    Exercise 1

    Two matrices A and B of maximum size 5x5 have the same number of rows and columns. Write a program that reads the number of rows and the number of columns, it then reads the two matrices row-wise and it calculates the matrix C which is A + B. Print the matrix C.

    Use the following data:

    [​IMG]




    Exercise 2

    A car selling company sells three car models in each of its four shops. The current car stock for the company is:

    [​IMG]

    Write a program which reads the stock data into a two-dimensional array. The program then prints tables of the total number of cars in each shop.

    [​IMG]

    Exercise 3

    Write a program which reads the number of rows and the number of columns of a two-dimensional INTEGER array of maximum size 5 X 5 it then reads an integer value N. If N is not a valid row number the program prints the error message INVALID ROW NUMBER otherwise it reads the array row-wise and it passes it and N to an integer function PRODCT which returns the product of the elements of row N. The program then prints this product.
    Use the following data:

    [​IMG]

    Your output should be:
    PRODUCT OF ROW# 2 = 180

    لااااب 13

    Exercise 1

    Write a program that reads unknown number of positive integers from a file INPUT.DAT and writes the odd integers into a file ODD.DAT and the even integers into a file EVEN.DAT. Assume that each line of the file INPUT.DAT contains one value.


    Exercise 2

    Each line of a file INPUT.DAT contains the ID number of a student and his three quiz grades (Real numbers). The number of data lines in the file is not known. Write a program which will read the data from the file and print in another file OUTPUT.DAT each student ID and his average in the three quizzes. The program should then print in the OUTPUT.DAT file the overall average.

    Exercise 3

    Write a program that reads unknown number of reals from a file and prints the percentage of values above average. Do not use an array. Assume that each line of the file contains one value. HINT: Use the REWIND statement.​
     
  2. Euler

    Euler عضو

    انضم:
    ‏10 سبتمبر 2009
    المشاركات:
    1,480
    التخصص:
    Electrical Engineer
    الجامعة:
    KFUPM
    سنة التخرج:
    2015
    نقاط الجائزة:
    0
    الوظيفة:
    not yet
    الإقامة:
    Jedd_Dhah
    التقييمات:
    +18 / 0 / -0
  3. S H A D O W

    S H A D O W عضو

    انضم:
    ‏29 يناير 2010
    المشاركات:
    589
    التخصص:
    هندسة ميكانيكية
    الجامعة:
    KFUPM / KAUST
    سنة التخرج:
    2014
    نقاط الجائزة:
    0
    الإقامة:
    Jed-Dha
    التقييمات:
    +12 / 0 / -0
    حل lab 12 - ex2
     

    الملفات المرفقة:

    • LAB12-EX2.txt
      حجم الملف:
      664 بايت
      المشاهدات:
      156
  4. S H A D O W

    S H A D O W عضو

    انضم:
    ‏29 يناير 2010
    المشاركات:
    589
    التخصص:
    هندسة ميكانيكية
    الجامعة:
    KFUPM / KAUST
    سنة التخرج:
    2014
    نقاط الجائزة:
    0
    الإقامة:
    Jed-Dha
    التقييمات:
    +12 / 0 / -0
    حل lab12-ex1
     

    الملفات المرفقة:

    • LAB12-EX1.txt
      حجم الملف:
      493 بايت
      المشاهدات:
      153
جاري تحميل الصفحة...
مواضيع شبيهة - شباب مسااعدتكم الفورتران ics101
  1. اسير الكون
    الردود:
    0
    المشاهدات:
    676
  2. سعيد الحظ
    الردود:
    3
    المشاهدات:
    4,280
  3. ابو عبدالاله
    الردود:
    2
    المشاهدات:
    541
  4. Euler
    الردود:
    3
    المشاهدات:
    639
  5. imported_abo_salem
    الردود:
    1
    المشاهدات:
    567
  6. البديوي
    الردود:
    11
    المشاهدات:
    888
  7. ارميا
    الردود:
    0
    المشاهدات:
    1,485
  8. طيب الروح
    الردود:
    0
    المشاهدات:
    537
  9. A+_CHE
    الردود:
    14
    المشاهدات:
    936
  10. ابو عبدالاله
    الردود:
    3
    المشاهدات:
    580

مشاركة هذه الصفحة