Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write the testing of the program Screensnot Rate answer here. #Function to print torus sqaure in well f N CAWINDOWSisystem32cmd.exe Idef printArray (torusSquare): bisplay Torus

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

write the testing of the program Screensnot Rate answer here. #Function to print torus sqaure in well f N CAWINDOWSisystem32\cmd.exe Idef printArray (torusSquare): bisplay Torus square at the beginning for i in range(3): for j in range(3): print(torusSquare[i][j],' print() pisplay Torus square after rotation Le #Function to rotate torus square as per tisplay Torus square after rotation U 2 |def rotate(torusSquare, direction, index): 16 #Row roration left Press any key to continue if(direction=='L' and index3): vals=torusSquare[index] temp=vals[0] vals[0]=vals[1] vals[1]=vals[2] vals[2]=temp torusSquare[index]=vals #Row roration right elif(direction=='R' and index0): line=line.rstrip(' ') 1st=line.split(' ') rotate(torusSquare,lst[0],int(1st[1])) print(' Display Torus square after rotation',line) printArray (torusSquare) j-=1 #After finishing number of rotattions else: break #Test #Call Play function and pass file name TorusSquare("test.txt") write the testing of the program Screensnot Rate answer here. #Function to print torus sqaure in well f N CAWINDOWSisystem32\cmd.exe Idef printArray (torusSquare): bisplay Torus square at the beginning for i in range(3): for j in range(3): print(torusSquare[i][j],' print() pisplay Torus square after rotation Le #Function to rotate torus square as per tisplay Torus square after rotation U 2 |def rotate(torusSquare, direction, index): 16 #Row roration left Press any key to continue if(direction=='L' and index3): vals=torusSquare[index] temp=vals[0] vals[0]=vals[1] vals[1]=vals[2] vals[2]=temp torusSquare[index]=vals #Row roration right elif(direction=='R' and index0): line=line.rstrip(' ') 1st=line.split(' ') rotate(torusSquare,lst[0],int(1st[1])) print(' Display Torus square after rotation',line) printArray (torusSquare) j-=1 #After finishing number of rotattions else: break #Test #Call Play function and pass file name TorusSquare("test.txt")

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions

Question

Have issues been prioritized?

Answered: 1 week ago

Question

d. How will lack of trust be handled?

Answered: 1 week ago

Question

Are the rules readily available?

Answered: 1 week ago