Question
you should not use any specialized functions or libraries (e.g. itertools) that your programming language might offer. 1. A student is registering for classes for
you should not use any specialized functions or libraries (e.g. itertools) that your programming language might offer.
1. A student is registering for classes for next semester. The courses she can enroll in are calculus, physics, organic chemistry, history, literature, French, and astronomy. She has room for four classes in her schedule, at the following times: 9am, 10am, 11am, 12pm. She wants to count all the possible versions of her schedule. Additionally, the student's mother is helping her buy textbooks for her classes. Each course listed above has a specific textbook that is required with it. Therefore, a book order for the student will consist of four textbooks. Book orders are automatically listed in alphabetical order by the class subject (i.e. one book order could be astronomy, French, organic chemistry, physics). The student's mother wants to count all the possible book orders that she could be making.
a) Write a program in python using for loops thatlistsANDcountsall the possible book orders. What are the first 20 outcomes that your program lists? What is the total number of outcomes?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started