برنامج لحساب القيمة الأكبر بين رقمين Private Sub Command1_Click () m1 = Val(Text1.Text) m2 = Val(Text2.Text ( If m1 > m2 Then Text3.Text = m1 Else Text3.Text.

Slides:



Advertisements
Similar presentations
ThemeGallery PowerTemplate
Advertisements

ALGORITHMS AND FLOWCHARTS
Center of Mass. Consider motion of object as if all mass located at C of G.
Pulleys at an Angle. FBD-S m 1 = 100 kg m 2 = 300 kg 30° vivi 0 t10 s θ30° µ0 m1m1 100 kg m2m2 300 kg No Friction.
TOP IMPLART AT 152 MeV: SPOT SCANNING AFTER BEAM-1 LINE C. RONSIVALLE Tentative parameters: L1=0.2 m L2=0.4 m d=0.2 m L=1.5 m Bmax=0.3 T M1 M2 8 Aprile.
PowerPoint Template Add your company slogan
PowerPoint Template
Click to add your text PowerPoint Template
Add your company slogan
Find the perimeter. Areas Grade 7 - CIC 15-Feb-14 Area of a Rectangle X = X = X = BAh B B h h B h B = base h = height Must learn formula.
ABAP Data/Internal Tables ITP 321 Anthony Borquez & Jim Graver.
WHEEL OF EOC CLICK THE SPINNER BANKRUPT $50 $5 $10 $20 $500 $100.
Summer ’12 AP Computer Science APCS Summer Assignments Read thoroughly this ppt and solve examples 6 and 7.
SWT (III) VB Week 2 1 Session 4 Control Structures.
CSM18 Visual Basic Section 2 Department of Computing UniS 1 CSM18 Further Constructs in VB A statement is the fundamental syntactical element of a program.
BeginningNext SlideBack End Program AVADAL 1 of 15 SK-3 Rolls Rolls Will Not Extend/Extend Slowly.
PowerPoint Template.
Do You Know Your Conversions?. Metric Conversions Click on the space bar when you want to reveal the answers. 1 cm = ____ mm 1 dm = ____ cm 1 m = _____.
PowerPoint Template.
Day 2 1.Review 2.Perturbations 3.Steady State 4.Protein Cascades 5.Gene Regulatory Models 6.Project.
MARKOV CHAIN A, B and C are three towns. Each year: 10% of the residents of A move to B 30% of the residents of A move to C 20% of the residents of B move.
Powerpoint Jeopardy Category 1Category 2Category 3Category 4Category
Title can be added here by Prof. Somchai Doe. Add your text in here Add content Add your text Contents.
Perimeter Perimeter of a shape is the total length of its sides. Perimeter of a rectangle length width length width = length + width + length + width P.
ALGORITHMS AND FLOWCHARTS
تعريف المصفوفات Arrays Dim OneDim (9) As Integer ' 10 عناصر Dim TwoDims (1, 1) As String ' عناصر 4= 2 * 2 OneDim (0) = 100 OneDim (1) = 200 … OneDim (9)
Visual Basic Statements Chapter 5. Relational Operators  OperationSymbol  Equal  =  Less than  <  Greater than  >  Not equal   Less than.
أنظمة العد الدرس الثاني.
CSC 206 جمل اتخاذ القرار.
جداء و خارج عددين جذريين
Arrays. What is the output of: Private Sub cmdButton_Click() Dim i As Integer, a(1 To 4) As integer Open "DATA.TXT" For Input As #1 For i = 1 To 4 Input.
Blank Template. Office of Research Services Template Heading Sub text in line form.
HEADLINE TEXT HERE Click here to add text. Click here to add text. Click here to add text. Click here to add text. Click here to add text. Click here to.
1 Topics l Program Language l Steps To Build a Program l Arithmetic Operation Priorities Program Errors Types l Sample Program.
Programming Test #1 Solutions. Multiple Choice 1. B) the grammar of the coding language 2. C) String 3. A) Single 4. C) 2Burgers4Me 5. B) Design Time.
وكالة البحوث التطوير Research and Development Division.
مسألة أكتب برنامجاً يقوم بقراءة عددين و إظهار رسالة تفيد بأن أحد العددين هو المضاعف النوني للعدد الآخر و في حال عدم كون أي من العددين مضاعفاً للآخر يظهر.
Pay Example (PFirst98) Please use speaker notes for additional information!
Created by Alia Al-Abdulkarim 2008 Visual Basic Vs. Java.
بسم الله الرحمن الرحيم تمثيل البيانات داخل الحاسب I Day 2.
Chapter five exercises. a. false; b. true; c. false; d. true; e. true; f. true; g. true; h. false.
The reading is 7.38 mm. The reading is 7.72 mm.
Print the sample banner slides or customize with your own message. Click on the letter and type your own text. Use one character per slide. C.
Lab 5.
Loops OR Iterations (For - While – Do_While)
Delete text and place photo here.
3rd prep. – 2nd Term MOE Book Questions.
خوارزميات و مبادئ برمجة
10 0× 1 = 4× 4 = (وحدات)4 10 1× = 5 50 = (عشرات)5
Programming -2 برمجة -2 المحاضرة-1 Lecture-1.
Click to place title Sub title
استعمال الدوال الجاهزة
Delete text and place photo here.
Var Name =Console . ReadLine();
YOUR text YOUR text YOUR text YOUR text
Understanding Code Workshop 2.
CLICK TO START.
Text for section 1 1 Text for section 2 2 Text for section 3 3
CLICK TO START.
Text for section 1 1 Text for section 2 2 Text for section 3 3
Text for section 1 1 Text for section 2 2 Text for section 3 3
الكلية الجامعية للعلوم التطبيقية
Repetition - Counting and Accumulating
Text for section 1 1 Text for section 2 2 Text for section 3 3
Text for section 1 1 Text for section 2 2 Text for section 3 3
Text for section 1 1 Text for section 2 2 Text for section 3 3
Call Now : Click : -
Call Now : Click : -
Call Now : Click : -
Text for section 1 1 Text for section 2 2 Text for section 3 3
Presentation transcript:

برنامج لحساب القيمة الأكبر بين رقمين Private Sub Command1_Click () m1 = Val(Text1.Text) m2 = Val(Text2.Text ( If m1 > m2 Then Text3.Text = m1 Else Text3.Text = m2 End If End Sub

طباعة الأعداد الصحيحة (0..10) Private Sub Command1_Click() For i = 0 To 10 Step 1 Print i Next i End Sub

طباعة الأعداد الصحية (0-10) ومربعاتها ومكعباتها Private Sub Command1_Click() For i = 0 To 10 Step 1 Print i, i ^ 2, i ^ 3 Next i End Sub

طباعة الأعداد عكسياً.. Private Sub Command1_Click() For i = 10 To 1 Step -1 Print i, i ^ 2, i ^ 3 Next i End Sub

مجموع الأعداد الصحيحة بين Private Sub Command1_Click() Sum = 0 For i = 1 To 10 Step 1 Sum = Sum + i Print Sum Next i End Sub

مجموع الأعداد الزوجية (0-20) Private Sub Command1_Click () Sum = 0 For i = 0 To 20 Step 2 Sum = Sum + i Print Sum Next i End Sub

For i = 1 To 5 m = InputBox(" ادخل الرقم الذي تريد جمعه..") Sum = Sum + Val(m) Print Sum Next i End Sub برنامج لجمع خمس ارقام عشوائية ( يدخلها المستخدم )

برنامج يطبع العدد ونوعه ( فردي أو زوجي ) Private Sub Command1_Click() Sum = 0 For i = 1 To 10 Step 1 If i Mod 2 = 0 Then Print i, "* * * *", " العدد زوجي" Else Print i, "* * * *", " العدد فردي" End If Next i End Sub

Private Sub Command1_Click() For i = 1 To 10 Print i, "*", 5, "=", i * 5 Next i End Sub برنامج يطبع جدول ضرب الخمسة

Private Sub Command1_Click() Do While m <> 2 m = InputBox(" ادخل الرقم الذي تريد ان تطبع جدول الضرب له..") For i = 1 To 10 Print i, "*", m, "=", i * Val(m) Next i Loop End Sub برنامج لطباعة جدول الضرب لعدد عشوائي..

Private Sub Command1_Click() sumodd = 0 sumeven = 0 For i = 1 To 10 If i Mod 2 = 0 Then sumeven = sumeven + i Print i Else sumodd = sumodd + i Print i End If Next i Print " مجموع الاعداد الزوجية ", sumeven Print " مجموع الاعداد الفردية ", sumodd End Sub برنامج يطبع مجموع الاعداد الفردية والزوجية..

برنامج يحسب معدل خمس علامات باستخدام مربع الادخال Private Sub Command1_Click() Sum = 0 For i = 1 To 5 m = InputBox(" ادخل العلامة..") Sum = Sum + m Next i av = Sum / 5 Print " معدل علاماتك هو ", av End Sub

برنامج خصومات.. Private Sub Command1_Click() m = Val(Text1.Text) Select Case m Case Is >= 5000 total = m - (m * 5 / 100) Print " الرصيد المطلوب منك دفعه..", total Case Is >= 8000 total = m - (m * 8 / 100) Print " الرصيد اللازم دفعه..", total Case Else Print total, " انت لاتستحق اي خصم" End Select End Sub

برنامج يطبع الجذر التربيعي للعدد Private Sub Command1_Click () m = InputBox ("") Do While m >= 0 Print " جذر العدد ", Val(m), " هو ", Sqr(m ( m = InputBox ("") Loop End Sub

برنامج يجمع خانات رقم ثلاثي Private Sub Command1_Click() m = Val(Text1.Text) m1 = m \ 100 Print m1 m2 = (m Mod 100) \ 10 Print m2 m3 = m Mod 10 Print m3 mm = m1 + m2 + m3 Label1.Caption = mm End Sub