def obtainListOfStudents(): listOfStudents = [] ## ## This section used for quick loading of students ## st = student.PFstudent("Andrew", 96,96) ## listOfStudents.append(st) ## st = student.PFstudent("Brianna", 96,96) ## listOfStudents.append(st) ## st = student.LGstudent("Casey", 96,96) ## listOfStudents.append(st) ## st = student.PFstudent("Demi", 45,45) ## listOfStudents.append(st) carryOn = 'Y' while carryOn == 'Y': name = input("Enter student's name: ") midterm = float(input("Enter student's grade on midterm exam: ")) final = float(input("Enter student's grade on final exam: ")) category = input("Enter category (LG or PF): ") if category.upper() == "LG": st = student.LGstudent(name, midterm, final) else: st = student.PFstudent(name, midterm, final) listOfStudents.append(st) carryOn = input("Do you want to continue (Y/N)? ") carryOn = carryOn.upper() return listOfStudents
def obtainListOfStudents(): listOfStudents = [] carryOn = 'Y' while carryOn == 'Y': name = input("Enter student's name: ") midterm = float(input("Enter student's grade on midterm exam: ")) final = float(input("Enter student's grade on final exam: ")) st = student.LGstudent(name, midterm, final) if st.calcSemGrade() == 'A': listOfStudents.append(st) carryOn = input("Do you want to continue (Y/N)? ") carryOn = carryOn.upper() return listOfStudents
def obtainListofStudents(): listOfStudents = [] carryOn = 'Y' while carryOn == 'Y' name = input("Enter student's name: ") midterm = float(input("Enter student's grade on midterm exam: ")) final = float(input("Enter student's grade on fnal exam: ")) categoryy = input("Enter category (LG or PF): ") if category.upper() == "LG": st = student.LGstudent(name, midterm, final) else: st = student.PFstudent(name, midterm, final) listOfStudents.append(st) carryON = input("Do you want to continue (Y/N)?") carryON = carryON.upper()
def obtainListOfStudents(): listOfStudents = [] carryOn = 'Y' while carryOn == 'Y': name = input("Enter student's name: ") midterm = float(input("Enter student's grade on midterm exam: ")) final = float(input("Enter student's grade on final exam: ")) category = input("Enter category (LG or PF): ") status = input("Are you a full time student? (Y/N)") if category.upper() == "LG": st = student.LGstudent(name, midterm, final, status) else: st = student.PFstudent(name, midterm, final, status) listOfStudents.append(st) carryOn = input("Do you want to continue (Y/N)? ") carryOn = carryOn.upper() return listOfStudents