List

“””
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
“””

12 Responses to “QUIZ”

  1. محمد سامي قاسم

    list=[]
    number=int(input(“enter list length”))
    print(“numbere”)
    for i in range(number):
    data=int(input())
    list.append(data)
    print(“list”,list)
    print(“degree of the first=”,max(list))
    print(“degree of the last =”,min(list))
    for i in list:

    if (i >= 50):
    print(“success=”, i)

    for i in list:
    if (i < 50):
    print("failure=", i)

  2. احمد خالد عبدالونيس ابراهيم

    student_count= int(input(‘Enter the number of the students : ‘))
    print (‘ The number of the students is’ + str(student_count)
    degrees=[]
    i=0
    while i <= student_count :
    s = float(input('Enter the student degrees : '))
    degrees.append(s)
    i += 1
    f = int(input("Enter the full mark : "))
    failed = []
    i = 0
    while i = f/2
    succeed.append(i)
    i += 1
    print(‘The number of succeed is ‘+str(len(succeed)))
    x = (len(failed) /f )*100
    y = (len(succeed) / f) *100
    print(“The present of failure is “+ str(x))
    print(“The present of success is “+ str(x))
    print(“The degree of the last student is ” + str(min(s)))
    print(“The degree of the first student is ” + str(max(s)))

  3. خالد رفعت على عقده

    List,-[] students_count_program
    student_count= int(input(‘Enter the number of the students : ‘))
    print (‘ The number of the students is’ + str(student_count)
    degrees=[]
    i=0
    while i <= student_count :
    s = float(input('Enter the student degrees : '))
    degrees.append(s)
    i += 1
    f = int(input("Enter the full mark : "))
    failed = []
    i = 0
    while i = f/2
    succeed.append(i)
    i += 1
    print(‘The number of succeed is ‘+str(len(succeed)))
    x = (len(failed) /f )*100
    y = (len(succeed) / f) *100
    print(“The present of failure is “+ str(x))
    print(“The present of success is “+ str(x))
    print(“The degree of the last student is ” + str(min(s)))
    print(“The degree of the first student is ” + str(max(s)))

  4. Aisha El-Galady

    import sys

    StudentsCount = input(“please Enter number of Students in class? “)
    arr = []
    failedSum =0
    successSum =0
    while len(arr) < int(StudentsCount):
    name = input("please Enter name of Student "+ str(len(arr)+1)+": ");
    degree = input("please Enter degree of Student " + str(len(arr)+1)+": ");
    arr.append({'class':1,'name':name,'degree':degree});

    for i in range(int(StudentsCount)):
    if int(arr[i]['degree']) 0:
    successSum =successSum +1;

    print(“Failed Count: “+ str(failedSum));
    print(“Success Count: “+str(successSum));
    Z = 100/(int(failedSum)+int(successSum))
    print(‘Percent of Failed: ‘+str(failedSum*Z)+’%’)
    print(‘Percent of Sucessed: ‘+str(successSum*Z)+’%’)
    print(“Degree of first Student: ” +arr[0][‘degree’])
    print(“Degree of Last Student: ” +arr[int(StudentsCount)-1][‘degree’])

  5. محمد مجدى السيد الديب

    number of students=int(input(“enter the number of students”))
    dgree=[]
    i=0
    while i<number of students:
    degre of student =float(input("entire the dgree of student "+str(i+1)":"))
    dgree.append(degree of student)
    i+=1
    print ("the dgree of student"+str(dgree of student))
    for dgree in range(0,49):
    print (len dgree fail)
    for dgree in range(50,100)
    print (len dgree succes)
    degree failure=len(dgree fail)/number of fail*100
    succes=len(dgree success)/number of succes*100
    print ("the persentage of failure"+str(dgree))
    print ("the persentage of success"+str(dgree))
    print ("degree of the Frist student is"+str(max(dgree of student))
    print("the dgree of last student is"+str(min(degree of sti))

  6. احمد محمود محمود رجب

    StudentsCount = int(input(“please Enter number of Students in class”))
    —————–
    ‏degrees = []
    ‏i = 0
    ‏while i < students_count:
    ‏ degree = float( input("enter degree of student number " + str(i) + " : ") )
    ‏ degress.append(deg)
    ‏ i += 1
    ——————–
    ‏successcount = 0
    ‏failcount = 0
    ‏for d in degress:
    ‏ if d thefirstdegree:
    ‏ thefirstdegree = d

    ‏ if d < thelastgegree:
    ‏ thelastdegree = d

    ‏print("degree of first student = " + str(first_degree))
    ‏print("degree of last student = " + str(last_degree))

  7. basant abdula mohamed

    (1)
    StudentsCount = int(input(“please Enter number of Students in class”))
    (2)

    ‏degrees = []
    ‏i = 0
    ‏while i < students_count:
    ‏ degree = float( input("enter degree of student number " + str(i) + " : ") )
    ‏ degrees.append(deg)
    ‏ i += 1
    (3)
    success_count = 0
    ‏fail_count = 0
    ‏for d in degress:
    ‏ if d thefirstdegree:
    ‏ the_first_degree = d

    ‏ if d < the_last_degree:
    ‏ the_last_degree = d

    ‏print("degree of first student = " + str(the_first_degree))
    ‏print("degree of last student = " + str(the_last_degree))

  8. ابوبكر فتحي محمد عبدالستار

    number=int(input(“enter list length”))
    print(“numbere”)
    for i in range(number):
    data=int(input())
    list.append(data)
    print(“list”,list)
    print(“degree of the first=”,max(list))
    print(“degree of the last =”,min(list))
    for i in list:

    if (i >= 50):
    print(“success=”, i)

    for i in list:
    if (i < 50):
    print("failure=", i)

  9. Kiaunliz

    kamagra 50mg

  10. Evram George Calib

    number=int(input(“enter list length”))
    print(“numbere”)
    for i in range(number):
    data=int(input())
    list.append(data)
    print(“list”,list)
    print(“degree of the first=”,max(list))
    print(“degree of the last =”,min(list))
    for i in list:
    if (i >= 50):
    print(“success=”, i)
    for i in list:
    if (i < 50):
    print("failure=")

  11. مصطفي ثروت محمد

    Studentsnum = int(input(“please Enter number of Students in the class”))
    ‏degree = []
    ‏i = 0
    ‏while i < studentsnum:
    ‏ degree = float( input("enter degree of student number " + str(i) + " : ") )
    ‏ degree.append(deg)
    ‏ i += 1
    success_count = 0
    ‏fail_count = 0
    ‏for d in degree:
    ‏ if d thefirstdegree:
    ‏ thefirstdegree = d

    ‏ if d < thelastdegree :
    ‏ thelastdegree = d
    ‏print("degree of first student = " + str(the_first_degree))
    ‏print("degree of last student = " + str(the_last_degree))

  12. gehad hassan ibrahim

    num =int(input(‘enter the student number’))
    degreelist = []
    greatestdegree = 0
    # print(‘inter your students degrees : ‘)
    for i in range(0,5) :
    studentdegree =float(input(‘enter the studentdegree’))
    degreelist.append(studentdegree)

    print(‘degreelist’)
    lowestdegree = degreelist[0]

    for studentdegree in degreelist :

    if studentdegree >= 50:
    print(‘the student who got’, studentdegree,’is pass’)
    else:
    print(‘the student who got’, studentdegree,’is fail’)

    if greatestdegree studentdegree:
    lowestdegree = studentdegree
    print(‘the frist student in the class:’,greatestdegree)
    print(‘the last studenet in the class:’,lowestdegree)

Leave a Reply

Your email address will not be published. Required fields are marked *

  Posts

1 2 4
April 5th, 2022

Artificial Intelligence: A Modern Approach Lec(6)

Problem-Solving Agents https://drive.google.com/drive/folders/1dATIjI_UbdvoGwvGsVdIEHaa1wEODht3?usp=sharing

April 5th, 2022

Artificial Intelligence: A Modern Approach Lec(5)

Problem-Solving Agents https://drive.google.com/drive/folders/1K5QedjOtuhB03VRcmgETzY50lkZRA05R?usp=sharing

March 19th, 2022

Artificial Intelligence: A Modern Approach Lec(4)

Problem-Solving Agents Download from this link https://drive.google.com/drive/folders/1nmKUlWTd_f3la-BOHXpomWlOe3iLjmni?usp=sharing

March 13th, 2022

Artificial Intelligence: A Modern Approach Lec(3)

INTELLIGENT AGENTS Download from this link https://drive.google.com/drive/folders/1bQesWpipvYzw1FWwxTYO7ld7oa1UTr9_?usp=sharing  

March 5th, 2022

Artificial Intelligence: A Modern Approach Lec(2)

INTRODUCTION What Is AI? Download from this link https://drive.google.com/drive/folders/1SYygpoG-t21_4K6h9V_EllIf9nrWOv1_?usp=sharing Important link https://github.com/aimacode/aima-python https://aimacode.github.io/aima-exercises/ Task https://www.programiz.com/python-programming/keyword-list Optional https://i.am.ai/roadmap/#note  

February 23rd, 2022

Artificial Intelligence: A Modern Approach Lec(1)

INTRODUCTION What Is AI? Download from this link https://drive.google.com/drive/u/4/folders/10CUPZsMHo9simp8pc-PREViDzb2DW1bm Important link http://aima.cs.berkeley.edu/ https://github.com/aimacode/aima-python https://drive.google.com/file/d/1RPrTAQmuBj4NPnIGeZ7n9VEdmZSUoLnK/view https://drive.google.com/file/d/1Kc8e3HFPHRxasbNx3Kvt9R4U447p9otl/view https://www.youtube.com/playlist?list=PLUl4u3cNGP63gFHB6xb-kVBiQHYe_4hSi  

November 26th, 2021

Program Quiz

Click here
May 18th, 2021

ما هي مهارات العرض و التقديم ؟

ما هي مهارات العرض و التقديم ؟

May 11th, 2021

_تقرير _ اكتب الاجابة في كومنت

_اكتب اسمك كامل باللغة العربية_  الاجابة في كومنت اذكر صفات القائد ؟ حدد أهم خصائص فريق العمل ؟ ما هو […]

December 11th, 2020

كتاب مهارات الحاسب الالي

https://drive.google.com/file/d/1rfa4QEJJs-O087r_TVW6vhhzYxcMjQDf/view?usp=sharing

August 28th, 2020

الشيت الاول مهارات اتصال وعرض

     

July 1st, 2020

Research Gate

<a href=”https://www.researchgate.net/profile/El_Sayed_El-Kenawy”>El-Sayed M. El-kenawy on ResearchGate</a>

April 21st, 2020

Filter- Design Part2 Last chapter DSP-محاضره معالجه اشارات

https://youtu.be/zdBbof5-VZ4
April 21st, 2020

Filter- Design Part1 Last chapter DSP-محاضره معالجه اشارات

https://youtu.be/zdBbof5-VZ4
April 12th, 2020

circularconv معالجة اشارات

https://www.youtube.com/watch?v=Qgn6O-FPZ0o&feature=youtu.be
April 9th, 2020

Problems on Filter Realization معالجة اشارات

https://www.youtube.com/watch?v=1ZuyZQSeDso&feature=youtu.be
April 9th, 2020

حل شيت 5 مهارات الحاسب

https://drive.google.com/file/d/1-YvUakJnGyTHyBs6aTFv3yW2-3rUKSno/view?usp=sharing

April 3rd, 2020

REALIZATION معالجة اشارات

https://www.youtube.com/watch?v=d98TCckgbHc&feature=youtu.be
March 29th, 2020

Z properties معالجة اشارات

https://www.youtube.com/watch?v=uQoEGUIpioU&feature=youtu.be
March 28th, 2020

Report Solve the Following Using Z.T

March 28th, 2020

Revision on zمعالجة اشارات

https://www.youtube.com/watch?v=w3M5YYeusyQ&feature=youtu.be
March 27th, 2020

معالجة اشارات رقمية حل الشيت _سيكشن 1

https://drive.google.com/file/d/1J-UuLWmQu6EwnPN9FbvTj9-M1ekPVPQa/view?fbclid=IwAR1wCB2rP9oClLyInY-AAdO0FW4FKgisTARugw21X1BhhLZFIAAFKihXg54

March 26th, 2020

Frequency Response معالجة اشارات

https://www.youtube.com/watch?v=O5x1pxQRcSQ&feature=youtu.be
March 26th, 2020

Inverse z Transform part 4

https://www.youtube.com/watch?v=8TU-7E5DyvU&feature=youtu.be