156k views
0 votes
Assignment 4: Student Schedule edhesive

2 Answers

3 votes

Answer:

?

Step-by-step explanation:

User JackDaniels
by
5.1k points
6 votes

Answer:

As,we don't have any criteria given to perform this operation, so, we will be doing it all in a more arbitrary form of programming to accomplish the specific objective,and just for the sake of easiness and to make it more simple, we will go through a step wise manner.

Step-by-step explanation:

  • Start from here in a more step-wise manner, as will execute the operation in the Python language.
  1. first_name = input('Enter your first name: ')
  2. last_name = input('Enter your last: ')
  3. classes = []
  4. while True:
  5. class_name = input('Enter a name of the (next) class (or STOP/Stop/stop): ')
  6. if class_name not in ['STOP', 'Stop', 'stop']:
  7. room_number = input('Enter a room number of the class: ')
  8. classes.append((class_name, room_number))
  9. else:
  10. break
  11. if classes:
  12. print('\\'+first_name, last_name + '\'s schedule:')
  13. print('-------------------------')
  14. print('Class\t\tRoom')
  15. print('-------------------------')
  16. for num, (class_name, room_number) in list(enumerate(classes, start=1)):
  17. print(str(num)+'.'+class_name, '\t', room_number)
  • And then by putting all the required values and specific names we can obtain the," Student Schedule".
User Jeff Bencteux
by
4.6k points