Open IDLE and create a new file '[login to view URL]'
At the top of the program put the following comments:
# Assignment-4 - Professor Sundara
# Your name
define a main() function, a doTestOne() function and a doTestTwo() function
The main() function should call doTestOne() and doTestTwo()
In doTestOne(),
1) Prompt the user for a number (e.g., "Please enter an integer.")
2) Using input() retrieve the number entered and store it in a variable called "userInput"
3) Convert the number from text to an integer
4) Determine whether or not the number is an even number by using the modulo operator.
Hint: The expression x % 2 == 0 (modulo operator) evaluates to True when the remainder of x divided by 2 is 0.
5) If the number is even, print "Number entered is even"
If the number is odd, print "Number entered is odd"
In doTestTwo(),
1) Prompt the user for the age(e.g., "Please enter the age")
2) Using input() retrieve the number entered and store it in a variable called "userAge"
3) Convert the number from text to an integer
4) Prompt the user about status of driver's license (e.g. "Please indicate if you have driver's license (yes/no)?"
5) Using input() retrieve the number entered and store it in a variable called "license"
6) If the user's age is more than 15 and he/she answers "yes" to the driver's license then print the message "Congratulations! You are eligible to drive now!"
7) If not, print the message "Sorry! You are not eligible to drive now"
Don't forget to execute the main function as your last line in the program.
Store a copy of your finished program in Box.
Name your file [login to view URL] and submit it to Canvas.
Hi My Self J.D.Rathod. Currently I am working as a Lecturer In Computer Dept. (VGEC-Chandkheda).I am interested in your project , wait for your responses....
Hello, I am an expert Python programmer and a Msc computer science student.
I can help you with this task and get it completed in less than 24hrs
I focus on my clients satisfaction and my reviews can also testify of that.
I await a favorable consideration from you.
Thanks