import random message_to_student = "(empty)" name = input ("What is your name? ") print() student_ID = random.randint(1000000000, 9999999999) print ("Your student id number is: " + str(student_ID)) print () major = input ("What is your major? ") print() print ("What school is this? \n1 = Engineering\n2 = Business\n(Or any other number for liberal arts)") print() school = int (input ("Please enter the number: ")) print() """ Depending on which school the student belongs to... *Ask the student the appropriate yes/no question *Depending on the student's response, assign the appropriate text string to the variable message_to_student *DO NOT do any printing in this part of the program! That part is taken care of by the LAST line of the program, which will print whatever is contained in the variable message_to_student. For students in the Engineering school, ask if they have started their engineering project yet. If so, the message is: "Good for you! Keep me updated on your progress!" Otherwise: "That's not good at all. It's nearly November!" For students in the Business school, ask if they have found an internship yet. If so, the message is: "Congratulations! I know you must have impressed the company quite a bit." Otherwise: "You may be out of luck because most of the internships are probably gone by now." For students in the Liberal Arts school, ask if they have chosen a senior thesis topic yet. If so, the message is: "That sounds interesting, and I look forward to reading it." Otherwise: "You're going to be under a huge time crunch, if you don't even have a topic by this point." """ # YOUR CODE GOES HERE print () print ("Our Message --:" + message_to_student)
Your task, then, is to follow the directions in the comments in order to direct the program to carry out the appropriate steps depending on various conditions. Note that because some values are being assigned at random or based on user input, the output will look different each time you run the program. To this end, I have provided multiple examples of how the output could look.
What is your name? Bob Your student id number is: 9261776707 What is your major? IT What school is this? 1 = Engineering 2 = Business (Or any other number for liberal arts) Please enter the number: 1 Bob, have you started your senior engineering project yet? no Our Message --:That's not good at all. It's nearly November!
What is your name? Bill Your student id number is: 2147090693 What is your major? Marketing What school is this? 1 = Engineering 2 = Business (Or any other number for liberal arts) Please enter the number: 2 Bill, have you found an internship yet? yes Our Message --:Congratulations! I know you must have impressed the company quite a bit.
What is your name? Jack Your student id number is: 6973016010 What is your major? English What school is this? 1 = Engineering 2 = Business (Or any other number for liberal arts) Please enter the number: 3 Jack, have you decided on a senior thesis topic yet? yes Our Message --:That sounds interesting, and I look forward to reading it.In at least 150 words, please address the following questions in memo.txt: