(Solved) : Using Python 3 Write Python Program 1 Change Size Lists Maxrow 40 Maxcol 80 Program Work M Q42790678 . . .

using python 3

Write a Python program

1. Change the size of the lists:

MAX_ROW = 40
MAX_COL = 80

***program should work by only modifying the listsize.

2. Choose a character for live cells, and a character for deadcells. Modify your code.

3. Modify the menu to include the followings (you may change themenu and descriptions, but must contain all the followingoptions):

U – Press ‘U’ or ‘u’ to load the ‘U’ pattern.

Play – Press ‘P’ or ‘p’ to play the game.

Stop – Press ‘S’ or ‘s’ to stop the game.

Clear – Press ‘C’ or ‘c’ to clear the grid.

Quit – Press ‘Q’ or ‘q’ to exit the program

1) pattern1 name – Press ‘1’ to load thepattern. (Replace pattern1 name with an actualpattern name you have, ex: 1) spaceship ). The location of theloaded pattern should be randomized.

2) pattern2 name – Press ‘2’ to load thepattern. (Replace pattern2 name with actualpattern name you have, ex: 2) snake ).   The location ofthe loaded pattern should be randomized.

3) pattern3 name – ‘3’ to load the pattern.(Replace pattern3 name with actual pattern nameyou have, ex: 3) phython ).   The location of the loadedpattern should be randomized.

Manual – Press ‘M’ to create a pattern from the user’s input(collect row and column numbers) and set each cell to a livecell.

Save – Press ‘S’ to save the current live cell pattern of thecurrentArray to a file; save the row and column numbers of the livecells. (You may allow the user to type a file name.)

Load – Press ‘L’ to load a saved file. (You may allow the userto type the file name the user wish to load.)

***Allow the user to type uppercase or lowercase characters.

4. Add three more patterns except the ‘U’ pattern. See the filebelow (do not use block and tub), or you may create your ownpatterns.   Present the different patterns (at least 3using files – pattern1.txt, pattern2.txt, pattern3.txt. Select thepatterns that change. present them to the user in the menu (see 5),then allow the user to load those files; create a function toaccess each file. Each file contains the row and column numbers oflive cells.

block bat snake ship aircraft carrier beehive burge H. Python long boar eater, fishhook loaf3P2.1 Blinker 5P4H1Y1.1 Glider 6.4 6P2.2 Beacon Beehive Long Boat 12.41 8.7 Pond 14.533 Half-Bakery Half-Fleet

You may search Internet to find different patterns.

5. Define variables and functions as necessary.

***Define the functions in the beginning, not in the middle ofyour code.

***No object-oriented programming.

OUTPUT:

[P]lay - Press P to play. [Q]uit - Press Q to exit. Tul I - Press U to load the pattern. [1] Diamond - Press 1 to

block bat snake ship aircraft carrier beehive burge H. Python long boar eater, fishhook loaf 3P2.1 Blinker 5P4H1Y1.1 Glider 6.4 6P2.2 Beacon Beehive Long Boat 12.41 8.7 Pond 14.533 Half-Bakery Half-Fleet [P]lay – Press ‘P’ to play. [Q]uit – Press ‘Q’ to exit. Tul ‘I’ – Press ‘U’ to load the pattern. [1] Diamond’ – Press ‘1’ to load the pattern. [2] Spaceship – Press 2 to load the pattern. [3] “Snowflake’ – Press “3 to load the pattern. [C]lear – Press ‘C’ to clear the grid. [S]ave – Press ‘S to save the current pattern. [Lload – Press ‘L’ to load a saved file. LMT anual – Press ‘ to create your own pattern. ……………………………………………………………………. Show transcribed image text block bat snake ship aircraft carrier beehive burge H. Python long boar eater, fishhook loaf
3P2.1 Blinker 5P4H1Y1.1 Glider 6.4 6P2.2 Beacon Beehive Long Boat 12.41 8.7 Pond 14.533 Half-Bakery Half-Fleet
[P]lay – Press ‘P’ to play. [Q]uit – Press ‘Q’ to exit. Tul ‘I’ – Press ‘U’ to load the pattern. [1] Diamond’ – Press ‘1’ to load the pattern. [2] Spaceship – Press 2 to load the pattern. [3] “Snowflake’ – Press “3 to load the pattern. [C]lear – Press ‘C’ to clear the grid. [S]ave – Press ‘S to save the current pattern. [Lload – Press ‘L’ to load a saved file. LMT anual – Press ‘ to create your own pattern. …………………………………………………………………….

Expert Answer


Answer to using python 3 Write a Python program 1. Change the size of the lists: MAX_ROW = 40 MAX_COL = 80 ***program should work …

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?