انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة
الكلية كلية الهندسة
القسم الهندسة المدنية
المرحلة 1
أستاذ المادة منى حاتم جابر الحربي
13/07/2018 13:52:52
General : in our study consider only two type of matrices : 1- One dimensional matrices. 2- Two dimensional matrices.
1- One dimensional matrices : consist of elements arranged in one column or one array each element has a constant position (location) in the matrix and this position remain constant until we change it. • The matrix compound of name of matrix which recognized each matrix from the other and variables demonstrate the location (position) of each element : Such as A (5) : matrix with name A and with 5 position .
• The matrix has a retain statement with general form : No. of statement DIM name of matrix (constant) Such as 10 DIM A (5) • The matrix must read before apply any application on its elements. Ex1 : Write a program in basic language to print the first and last element of one dimensional matrix consist of 5 element [5 10 15 20 25]. 10 DIM A (5) 20 FOR I = 1 TO 5 30 READ A (I) 40 DATA 5,10,15,20,25 50 NEXT I 60 ? A(1) , A(5) 70 END Ex2 : Write a program in basic language to print the element of one dimensional matrix consist of 5 element [5 10 15 20 25]. 10 DIM A (5) 20 FOR I = 1 TO 5 30 READ A (I) 40 DATA 5,10,15,20,25 50 NEXT I 60 FOR I = 1 TO 5 70 ? A(I) 80 NEXT I 90 END
المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
الرجوع الى لوحة التحكم
|