programming – sayed kenawy https://sayedkenawy.com Fri, 26 Nov 2021 21:00:25 +0000 en-US hourly 1 Program Quiz https://sayedkenawy.com/2021/11/26/program-quiz/ https://sayedkenawy.com/2021/11/26/program-quiz/#respond Fri, 26 Nov 2021 20:59:40 +0000 http://www.sayedkenawy.com/?p=919 [qsm_link id=10]Click here[/qsm_link]

]]>
https://sayedkenawy.com/2021/11/26/program-quiz/feed/ 0
Programming Syllabus https://sayedkenawy.com/2019/11/11/programming-syllabus/ https://sayedkenawy.com/2019/11/11/programming-syllabus/#respond Mon, 11 Nov 2019 22:10:44 +0000 http://www.sayedkenawy.com/?p=770
  • Introduction to programming
    • Computer history
    • Program
    • How do computer execute program?
    • Generations of  programming  language
      • 1st Gen. (Assemble)
      • 2nd  (C  Programming)
      • 3rd (High-Level , C#, Java, Python)
    • Fields (Web, Desktop, Mobile, Embedded Systems, Smart Watch, IOT)
  •   ————————————————————————————————————

     

    • Introduction to python, how to install (python, vs code editor)

                https://www.tutorialspoint.com/python/python_variable_types.htm

     

                 https://www.w3schools.com/python/default.asp

     

               https://www.programiz.com/python-programming

    • Print Hello, World (hello world)
    • Comments 
    • Variable  (swap values of two variables)
    • Data Types  
    • List
    • Tuple
    • Dictionary
    • Casting / Converting  (get user tall, calc optimal weight)

    ———————————————————————————————————

    • Numbers
    • Strings

    ———————————————————————————————————

    • Operators 
    • Control Statements
      • If Else

    ———————————————————————————————————

      • While Loop
      • For Loop
      • Break
      • Continue

    ——————————————————————————————————–

     

    • Functions
      • Create function
      • Call function
      • Send parameters
      • Return value

    —————————————————————————————————————————-

     If we have Time File, Db 

    —————————————————————————————————————————

     

    ]]>
    https://sayedkenawy.com/2019/11/11/programming-syllabus/feed/ 0
    تبدأ برمجة ازاي .. ؟ https://sayedkenawy.com/2019/07/25/758/ https://sayedkenawy.com/2019/07/25/758/#comments Thu, 25 Jul 2019 03:00:01 +0000 http://www.sayedkenawy.com/?p=758 طلاب كتير بتسأل تبدأ برمجة ازاي .. ؟ خد عندك يا هندسة

    الترتيب المنطقى للتعلم هو كالآتي:

    1. HTML (1 month)
    2. CSS   (1 month)
    3. JavaScript  (2 months)
    4. jQuery  (1 month)
    5. Twitter BootStrap  (1 month)
    6. PHP  or (C#.NET , NETMVC)  (3-5 month)

     

    اقرأ الموضوع ده الأول, هيفتح معاك الدنيا فى الويب
    http://www.absba.org/showthread.php?t=693180

     

    الموقع ده بيشرح HTML بشكل كويس وبالعربى

    http://www.khayma.com/hpinarabic/htmintro.html

     

    وده الموقع عليه شرح لكل حاجة  باختصار

    https://www.w3schools.com/html/default.asp

     

    ده كورس من موزيلا عربى

    https://developer.mozilla.org/ar/docs/Learn

     

    وده كورس فيديو عربى كويس
    https://www.youtube.com/watch?v=VZhZ7mX6_jc&list=PL0fZfIBWrsucq6XAZgLuig8nRi5IcVF2o

    وأخيرا ده لينك عليه ملفات لشرح منها كورس الويب

    https://drive.google.com/drive/folders/0B317GNIkeRubfmFFb0ZBUDdnaWtRMDF0TDN5MGhBSksyZGl6RXpCTV82VDJLUVBRcXIxaUk?usp=sharing

    بالتوفيق ان شاء الله ، لا تنسنا من الدعاء شير في الخير

    ]]>
    https://sayedkenawy.com/2019/07/25/758/feed/ 1
    QUIZ https://sayedkenawy.com/2018/12/14/quiz-4/ https://sayedkenawy.com/2018/12/14/quiz-4/#comments Fri, 14 Dec 2018 23:04:38 +0000 http://www.sayedkenawy.com/?p=644 “””
    Write a program do the following:
    – ask the user to enter number of students in the class
    – create an empty list then fill by asking the user to enter the degree of each student in the class
    – use python loops to calculate the number of failed and succeed students
    – print students count, percent of failure and percent of success.
    – print the degree of the first student in the class
    – print the degree of the last student in the class
    “””

    ]]>
    https://sayedkenawy.com/2018/12/14/quiz-4/feed/ 12
    Python Examples Run https://sayedkenawy.com/2018/12/10/python-examples-run/ https://sayedkenawy.com/2018/12/10/python-examples-run/#respond Mon, 10 Dec 2018 07:01:28 +0000 http://www.sayedkenawy.com/?p=642 Program 1

    Program 2
    Program 3
    Program 4
    Program 5
    Program 6
    Program 7
    Program 8
    Program 9
    Program 10
    ]]>
    https://sayedkenawy.com/2018/12/10/python-examples-run/feed/ 0
    Python examples https://sayedkenawy.com/2018/12/04/python-examples-2/ https://sayedkenawy.com/2018/12/04/python-examples-2/#comments Tue, 04 Dec 2018 00:58:50 +0000 http://www.sayedkenawy.com/?p=636 “””
    use python while loop to print the following output

    *****
    ****
    ***
    **
    *

    “””

    x = 5
    while x != 0:
    txt = “”
    y = 1
    while y <= x:
    txt += “*”
    y = y + 1

    print(txt)

    x = x – 1

    …………………………………………………………………………………

    “””
    write a program to print even numbers between 20 and 50
    “””

    x = 20
    while x <= 50:
    if x % 2 == 0:
    print(x)

    x = x + 1

    ………………………………………………………………………………..

    “””
    write a program to print odd numbers between 50 and 100
    “””

    x = 50
    while x <= 100:
    if x % 2 != 0:
    print(x)

    x = x + 1

    ……………………………………………..

    “””
    write a program to print student grade (fail, pass, good, v.good, excellent) based on his degree (int number)
    “””

    degree = 67

    if degree < 50:
    print(“fail”)
    elif degree >=50 and degree < 65:
    print(“pass”)
    elif degree >= 65 and degree < 75:
    print(“good”)
    elif degree >= 75 and degree < 85:
    print(“very good”)
    elif degree >= 85:
    print(“excellent”)

    ……………………………………………………….

    “””
    write a program to ask the use to input the radius of the circle then
    calculate the area of the circle and print it
    area = pi * r^2
    “””

    from math import pi

    # radius of the circle (any value)
    r = float( input(“Please enter the radius: “) )

    area = pi * r**2

    print(“area is ” + str(area))

    ………………………………………………..

    “””
    write a program to reverse a string using python loops
    “””

    txt = “hello, world”
    rev_txt = “”

    # get length of text
    i = len(txt) – 1

    while i >= 0:
    rev_txt += txt[i]

    i = i – 1

    print(rev_txt)

    ……………………………………………

    “””
    write a program to create a list of numbers
    and fill with numbers between 1 – 10
    then increase all numbers in the list by 5 using while loop
    then print the updated list
    “””

    nums = []

    # fill with numbers between 1 – 10
    i = 1
    while i <= 10:
    nums.append(i)
    i += 1

    # add 5 to each number
    nums_updated = []
    for x in nums:
    new_val = x + 5
    nums_updated.append(new_val)

    # print
    print(nums_updated)

    ………………………………………..

    “””
    write a program to ask the user to fill list with item prices
    then print the total price

    the ask the user about the discount (ex. 30% for all prices not on total price)
    then apply the discount and print the final prices and the final total price
    “””

    item_count = int( input(“How many items: “) )

    prices = []

    i = 0
    while i < item_count:
    item_price = float( input(“enter price of item #” + str(i + 1) + “: “))
    prices.append(item_price)

    i += 1

    print(prices)
    total_price = sum(prices)
    print( “totalt price = ” + str(total_price) )

    discount = float( input(“enter discount : “) )

    prices_updated = []
    i = 0
    while i < item_count:
    new_price = prices[i] – prices[i] * discount / 100
    prices_updated.append(new_price)

    i += 1

    print(“updated prices:”)
    print(prices_updated)

    total_price_updated = sum(prices_updated)
    print(“the new total price is ” + str(total_price_updated))

    ……………………………………………………………………….

    “””
    use python loop to calculate the sum of the following list
    [456, 85, 36, 978, 22, 22.6, 13.8, 20]
    “””

    my_list = [456, 85, 36, 35, 22, 22.6, 13.88, 20]
    sum = 0

    i = 0
    while i < len(my_list):
    sum += my_list[i]

    i += 1

    print(“sum is ” + str(sum))

    …………………………………………………………

    “””
    write a python program to find the max number on the following list:
    [456, 85, 36, 978, 22, 22.6, 13.8, 20]
    “””

    my_list = [456, 85, 36, 978, 22, 22.6, 13.8, 20]

    # set max as the first item in the list
    max_num = my_list[0]

    i = 0
    while i < len(my_list):
    if my_list[i] > max_num:
    max_num = my_list[i]

    i += 1

    print(“max number is ” + str(max_num))

    …………………………………………………………..

    ]]>
    https://sayedkenawy.com/2018/12/04/python-examples-2/feed/ 1
    Python examples https://sayedkenawy.com/2018/10/28/python-examples/ https://sayedkenawy.com/2018/10/28/python-examples/#comments Sun, 28 Oct 2018 01:22:03 +0000 http://www.sayedkenawy.com/?p=605 1- Write Python Program to Print Hello world!

    https://www.programiz.com/python-programming/examples/hello-world

    2- Write Python Program to Add Two Numbers

    https://www.programiz.com/python-programming/examples/add-number

    3- Write Python Program to Generate a Random Number

    https://www.programiz.com/python-programming/examples/random-number

    4- Write Python Program to Calculate the Area of a Triangle

    https://www.programiz.com/python-programming/examples/area-triangle

    5- Write Python Program to Solve Quadratic Equation

    https://www.programiz.com/python-programming/examples/quadratic-roots

    6-Write Python Program to Find the Square Root

    https://www.programiz.com/python-programming/examples/square-root

    ]]>
    https://sayedkenawy.com/2018/10/28/python-examples/feed/ 1
    Download Python https://sayedkenawy.com/2018/10/18/download-python/ https://sayedkenawy.com/2018/10/18/download-python/#comments Thu, 18 Oct 2018 22:00:29 +0000 http://www.sayedkenawy.com/?p=588  السلام  عليكم

    ان شاء الله ده اللينك اللي تقدر تحمل من عليه برنامج البايثون بما يناسب نظام التشغيل الخاص بك

    https://www.python.org/downloads/

    Runده اللينك تنزل منه محرر تشغل عليه وتعمل

    https://www.jetbrains.com/pycharm/

    ]]>
    https://sayedkenawy.com/2018/10/18/download-python/feed/ 1
    Report ( python keyword-list ) https://sayedkenawy.com/2018/10/14/report-python-keyword-list/ https://sayedkenawy.com/2018/10/14/report-python-keyword-list/#comments Sun, 14 Oct 2018 21:46:33 +0000 http://www.sayedkenawy.com/?p=584 يرجي تلخيص المحتوي الموجود في هذا اللينك التلخيص يكون بخط اليد

    https://www.programiz.com/python-programming/keyword-list

    ]]>
    https://sayedkenawy.com/2018/10/14/report-python-keyword-list/feed/ 1
    Quiz 1 https://sayedkenawy.com/2018/09/28/quiz-1/ https://sayedkenawy.com/2018/09/28/quiz-1/#comments Fri, 28 Sep 2018 21:59:27 +0000 http://www.sayedkenawy.com/?p=555
  • What basic tools do you need to start programming?
  • What command would you use for the following in bash (CLI)?
  • Check your current directory
  • Change to a directory named ‘bin’ (bin is in your current directory)
  • make a new directory called ‘lib’
  • create a new file called ‘book.py’
  • list all the contents the current directory
  • ]]>
    https://sayedkenawy.com/2018/09/28/quiz-1/feed/ 26