Question: How can I convert this code from Python to Autoit script? Can you help me with that? import sys degree = input(Enter the degree [BA
How can I convert this code from Python to Autoit script? Can you help me with that? import sys degree = input("Enter the degree [BA / BSC / BIS / BBA] :") name = "" maxEnrollment = 80 if degree == "BA" or degree == "BSC" or degree == "BIS" or degree == "BBA": if degree == "BA": name = "Department of Bachelor of Arts" elif degree == "BSC": name = "Department of Bachelor of Science" elif degree == "BIS": name = "Department of Information Systems" elif degree == "BBA": name = "Department of Bachelor of Administration" else: print(" INVALID DEGREE PROGRAM - PLEASE ENTER A NEW DEGREE PROGRAM") sys.exit() year1 = int(input("The # of students in Year 1: ")) if year1>maxEnrollment: print("Exceeds the limit") year2 = int(input("The # of students in Year 2: ")) if year2>maxEnrollment: print("Exceeds the limit") year3 = int(input("The # of students in Year 3: ")) if year3>maxEnrollment: print("Exceeds the limit") year4 = int(input("The # of students in Year 4: ")) if year4>maxEnrollment: print("Exceeds the limit") year5 = int(input("The # of students in Year 5: ")) if year5>maxEnrollment: print("Exceeds the limit") year6 = int(input("The # of students in Year 6: ")) if year6>maxEnrollment: print("Exceeds the limit") total = year1+year2+year3+year4+year5+year6 print(" ***********************************") print(" \t\tReport") print(" ***********************************") print(" Name : " + name) print(" Year1 : " + str(year1)) print(" Year2 : " + str(year2)) print(" Year3 : " + str(year3)) print(" Year4 : " + str(year4)) print(" Year5 : " + str(year5)) print(" Year6 : " + str(year6)) print(" Percentage Year 1: " + str((year1/maxEnrollment)*100)) print(" Percentage Year 2: " + str((year2/maxEnrollment)*100)) print(" Percentage Year 3: " + str((year3/maxEnrollment)*100)) print(" Percentage Year 4: " + str((year4/maxEnrollment)*100)) print(" Percentage Year 5: " + str((year5/maxEnrollment)*100)) print(" Percentage Year 6: " + str((year6/maxEnrollment)*100)) print(" Total number of students : " + str(total)) sys.exit() Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
