عرض اجمالي المهام الشرطية في سي شارب (الأمر if)

Slides:



Advertisements
Similar presentations
Continuation of chapter 6…. Nested while loop A while loop used within another while loop is called nested while loop. Q. An illustration to generate.
Advertisements

YOUR FIRST ISIS2 GROUP Ken Birman 1 Cornell University.
Getting Started with C# 1 SWE 344 Internet Protocols & Client Server Programming.
תכנות ב C#. דוגמא לפלט using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void.
Adapter Pattern Dr. Neal CIS 480. Problem Your payroll has been calculated by an internal class. However you have decided to use a third party class that.
1 برنامه سازی با C# برنامه منو Instructor : Saeed Shiry.
GTECH 731 Lab Session 4 Lab 3 Review, Lab 4 Intro 9/28/10 Lab 3 Review Lab 4 Overview.
C# Tutorial From C++ to C#. Some useful links Msdn C# us/library/kx37x362.aspxhttp://msdn.microsoft.com/en- us/library/kx37x362.aspx.
1. 2 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Decisions { class.
Lecture 17: Spanning Trees Minimum Spanning Trees.
C# Advanced Topics Methods, Classes and Objects SoftUni Team Technical Trainers Software University
Methods Writing and using methods, overloads, ref, out SoftUni Team Technical Trainers Software University
3. Declaring Value-Type Variables
Computer Programming 1.  Editor Console Application Notepad Notepad++ Edit plus etc.  Compiler & Interpreter Microsoft.NET Framework  Microsoft visual.
1 Chapter 1 C# Data type. 2 Install.NET 2003 or 2005 NET 2005 is better than NET 2003 and very friendly for programmer. However, NET 2005 needs NET platform.
Web Controls Making a WebRequest using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.IO;
Features of Object Oriented Programming:  A class is a collection of things which posses common similarities.  In C#.NET a class is a user defined.
Session 08 Module 14: Generics and Iterator Module 15: Anonymous & partial class & Nullable type.
3 C# Control Statements Dr. John P. Abraham Professor UTPA.
CS590VC – Tutorial 6 Client-side connection through external application.
C# Introduction Part 1. Which Visual Studio Should I use? Any Express (2012, 2013…) or Community Edition 2013 Any full version.
Methods SWE 344 Internet Protocols & Client Server Programming.
Generics Ashima Wadhwa. What are generics Generics were added by C# 2.0 the term generics means parameterized types. Using generics, you can define a.
Take out a piece of paper and PEN. The quiz starts ONE minute after the tardy bell rings. You will have 45 – 90 seconds per question. Determine the output.
FOR LOOP WALK THROUGH public class NestedFor { public static void main(String [] args) { for (int i = 1; i
CPSC 481 Fateme Rajabiyazdi #W4. Visual Studio Download Visual Studio 2013 (Ultimate) from – MSDN Academic Alliance Software Center – IT account.
Chapter 9 Delegates and Events. Copyright 2006 Thomas P. Skinner2 Delegates Delegates are central to the.NET FCL A delegate is very similar to a pointer.
 A class is a collection of things which posses common similarities.  In C#.NET a class is a user defined Data type and is Known as Reference.
Jesus Rodriguez Chief Architect, Tellago, Inc Microsoft Architect Advisor Microsoft MVP Oracle SOA ACE SESSION CODE: DEV406.
1 Advanced Programming Examples Output. Show the exact output produced by the following code segment. char[,] pic = new char[6,6]; for (int i = 0; i
INPUT/OUTPUT STATEMENT ADDITION SLIDES. Console.ReadLine() – Use to get the input (String) from user Convert string to other data type – int.Parse() 
Lecture 11: Generics. The Generic List loading data from a file using System.IO; : namespace EmpListDemo { static class Program { static void Main(string[]
Output Programs These slides will present a variety of small programs. Each program has a compound condition which uses the Boolean Logic that was introduced.
JAVA METHODS (FUNCTIONS). Why are they called methods? Java is a strictly object-oriented programming language Methods are functions inside of objects.
Methods Matthew Harrison. Overview ● There are five main aspects of methods... ● 1) Modifiers – public, private ● 2) Method Name ● 3) Parameters ● 4)
To find near doubles.
C# — Console Application
התוכנית: using System; using System.Collections.Generic;
BİL527 – Bilgisayar Programlama I
using System; namespace Demo01 { class Program
C# Arrays.
Building Your Own Class
Classes Inheritance.
Function Call Trace public class Newton {
Getting Started with Programming
MUTENESS ASSİSTMENT 1)WHY CHOICE ? 2)ABOUT DESİGN 3)WHICH CODES USING
Functions Used to write code only once Can use parameters.
C# Control Statements part 1 (Based on Deitel Book)
Exception Handling CSCI293 - C# October 3, 2005.
عرض إجمالي أنماط المتغيرات الأساسية في سي شارب (نمط int)
Code Animation Examples
Recursive GCD Demo public class Euclid {
Lecture 13: Tree Traversals Algorithms on Trees.
References and Objects
class PrintOnetoTen { public static void main(String args[]) {
Structured Variables & File Systems
A Java Application public class Hello { public static void main(String [] args) { System.out.println("Hello, World!"); } } public class.
Chapter 13 Exception Handling: A Deeper Look
Methods and Data Passing
CSE Module 1 A Programming Primer
A Java Application public class Hello { public static void main(String [] args) { System.out.println("Hello, World!"); } } public class.
Var Name =Console . ReadLine();
Module 4 Loops and Repetition 4/15/2019 CSE 1321 Module 4.
Array.
When an argument to method is an entire array or an individual element of reference type, the called method receives a copy of reference. However an argument.
Lecture 11 Parameters CSE /26/2018.
½ of 6 = 3.
Design Patterns (Gamma, Helm, Johnson, Vlissides)
Local variables and how to recognize them
Presentation transcript:

عرض اجمالي المهام الشرطية في سي شارب (الأمر if) في موضوع: المهام الشرطية في سي شارب (الأمر if) مقدّم من: رخــــــاء مـــــــحــــمـــــــد قـــــعـــــدان السنة الأكاديمية : 2014 – 2015 المرشد:د.نمر بياعة أكاديمية القاسمي-كلية أكاديمية للتربية طلاب سنة ثالثة، رياضيات وحاسوب، مسار إعدادي

«أمر الشرط if» الأوامر التي يجب تنفيذها شرط نستخدم هذا الأمر لكتابة __________ ويتبعه___________________ _________ إذا تحقق الشرط. الأوامر التي يجب تنفيذها شرط مثال: الشرط : المعدل أكبر من 92 الجواب : إطبع لي كل الإحترام if (averge > 92) Console.WriteLine(" كل الإحترام ");

«أمر الشرط if مع else » بديل نستخدم الأمر (غير ذلك ) ليكون _________ للشرط إن لم يتحقق . بديل مثال: إذا (الشرط : المعدل أكبر من 92) الجواب :إطبع لي كل الإحترام غير ذلك إطبع للأسف if (averge > 92) Console.WriteLine(" كل الإحترام "); else Console.WriteLine(" للأسف ");

تعريف المتغيرات المعطيات للمتغيرات : المهام الشرطية: تحديد المخرجات: double averge ; Console.Write("Enter the averge : "); المعطيات للمتغيرات : averge = double.Parse(Console.ReadLine()); المهام الشرطية: if (averge > 92) Console.WriteLine("You are accepted"); تحديد المخرجات: else Console.WriteLine("Sorry try again");

في حال تنفيذ الشرط في حال عدم تنفيذ الشرط using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program static void Main(string[] args) double averge; Console.Write("Enter the averge : "); averge = double.Parse(Console.ReadLine()); if (averge > 92) Console.WriteLine("You are accepted"); else Console.WriteLine("Sorry try again"); Console.ReadKey(); } في حال تنفيذ الشرط في حال عدم تنفيذ الشرط لاحظ العلاقة بين أوامر البرنامج وشاشة عرض نتيجة تشغيل البرنامج مقابل المستخدم. ماذا أدخل المستخدم للبرنامج؟