Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

design a python gui using tkinter for this code def cALFINE1(): mINPAY = 25 print(PLEASE ENTER YOUR STUDENT ID) sTUDENTID = input() print(PLEASE ENTER YOUR

design a python gui using tkinter for this code

def cALFINE1(): mINPAY = 25 print("PLEASE ENTER YOUR STUDENT ID") sTUDENTID = input() print("PLEASE ENTER YOUR VEHICLE PLATE NUMBER") pLATENO = input() pAY6 = mINPAY * 4 print("Your student ID is " + sTUDENTID) print("Your vehicle plate number is " + pLATENO) print(f"The fine you need to pay is RM{pAY6}") print("THANK YOU FOR PAYING,DRIVE SAFELY AND KEEP THE ROAD SAFE FOR ALL ") def cALFINE2(): mINPAY = 25 print("PLEASE ENTER YOUR STUDENT ID") sTUDENTID = input() print("PLEASE ENTER YOUR VEHICLE PLATE NUMBER") pLATENO = input() pAY5 = mINPAY * 3 print("Your student ID is " + sTUDENTID) print("Your vehicle plate number is " + pLATENO) print(f"The fine you need to pay is RM{pAY5}") print("THANK YOU FOR PAYING,DRIVE SAFELY AND KEEP THE ROAD SAFE FOR ALL ") def cALFINE3(): mINPAY = 25 print("PLEASE ENTER YOUR STUDENT ID") sTUDENTID = input() print("PLEASE ENTER YOUR VEHICLE PLATE NUMBER") pLATENO = input() pAY4 = mINPAY * 3 print("Your student ID is " + sTUDENTID) print("Your vehicle plate number is " + pLATENO) print(f"The fine you need to pay is RM{pAY4}") print("THANK YOU FOR PAYING,DRIVE SAFELY AND KEEP THE ROAD SAFE FOR ALL ") def cALFINE4(): mINPAY = 25 print("PLEASE ENTER YOUR STUDENT ID") sTUDENTID = input() print("PLEASE ENTER YOUR VEHICLE PLATE NUMBER") pLATENO = input() pAY3 = mINPAY * 2 print("Your student ID is " + sTUDENTID) print("Your vehicle plate number is " + pLATENO) print(f"The fine you need to pay is RM{pAY3}") print("THANK YOU FOR PAYING,DRIVE SAFELY AND KEEP THE ROAD SAFE FOR ALL ") def cALFINE5(): mINPAY = 25 print("PLEASE ENTER YOUR STUDENT ID") sTUDENTID = input() print("PLEASE ENTER YOUR VEHICLE PLATE NUMBER") pLATENO = input() pAY2 = mINPAY * 2 print("Your student ID is " + sTUDENTID) print("Your vehicle plate number is " + pLATENO) print(f"The fine you need to pay is RM{pAY2}") print("THANK YOU FOR PAYING,DRIVE SAFELY AND KEEP THE ROAD SAFE FOR ALL ") def cALFINE6(): mINPAY = 25 print("PLEASE ENTER YOUR STUDENT ID") sTUDENTID = input() print("PLEASE ENTER YOUR VEHICLE PLATE NUMBER") pLATENO = input() pAY1 = mINPAY * 1 print("Your student ID is " + sTUDENTID) print("Your vehicle plate number is " + pLATENO) print(f"The fine you need to pay is RM{pAY1}") print("THANK YOU FOR PAYING,DRIVE SAFELY AND KEEP THE ROAD SAFE FOR ALL ") # Main print("PLEASE ENTER YOUR SPEED") sPEED = int(input()) while sPEED <= 120 and sPEED >= 30: if sPEED <= 120 and sPEED > 90: print("ENTER DAY") dAY = int(input()) if dAY <= 7: cALFINE2() else: cALFINE1() print("PLEASE ENTER YOUR SPEED") sPEED = int(input()) if sPEED <= 90 and sPEED > 50: print("ENTER DAY") dAY = int(input()) if dAY <= 7: cALFINE4() else: cALFINE3() print("PLEASE ENTER YOUR SPEED") sPEED = int(input()) if sPEED <= 50 and sPEED >= 35: print("ENTER DAY") dAY = int(input()) if dAY <= 7: cALFINE6() else: cALFINE5() print("PLEASE ENTER YOUR SPEED") sPEED = int(input()) print(" SORRY, YOUR DATA IS INVALID, PLEASE TRY AGAIN")

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

More Books

Students also viewed these Databases questions