Question: Besides the correctness, your program will also be evaluated based on readability ( e . g . , comments, variable names, structures, etc ) and

Besides the correctness, your program will also be evaluated based on readability (e.g., comments, variable names, structures, etc) and design of functions (for (3) only). Each question carries 20 points.
Important reminders and restrictions Points will be deducted if violating these restrictions.
1. This is an individual project.
2. You are expected to write all the code yourself.
3. No import statements allowed.
4. You have to use all the functions given.
5. You cannot change the doctrings of all functions and their names.
6. You cannot change the code in explore_paths () and find_all_shortest_paths ().
7. You cannot use any built-in functions except print () and type conversion functions.
8. You cannot use list comprehensions.
This assignment is for you to write genStates (). Use the template below and name the file midterm_states.py.
```
"""CS 108- Midterm project - part 1
Describe the module here. Fix the lab number above and the name/date below.
@author: YOUR-NAME (yourid123)
@date: semester, year
"""
def genStates():
"""Generate a tuple of all states for the MCGW problem
Parameters
None
Returns
Tuple of strings
All possible states
"%"
# testing the function
print("Test 1: All possible states")
print(genStates())
```
The expected results are:
Test 1: All possible states
('EEEE', 'EEEW', 'EEWE', 'EEWW', 'EWEE', 'EWEW', 'EWWE', 'EWWW', 'WEEE', 'WEEW', 'WEWE', 'WEWW', 'WWEE', 'WWEW', 'WWWE', 'WWWW')
Besides the correctness, your program will also

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!