Exercise 2 - Following the Clues Using your treasure map script and start at (1.1). Use the output clues as input and re

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Exercise 2 - Following the Clues Using your treasure map script and start at (1.1). Use the output clues as input and re

Post by answerhappygod »

Exercise 2 Following The Clues Using Your Treasure Map Script And Start At 1 1 Use The Output Clues As Input And Re 1
Exercise 2 Following The Clues Using Your Treasure Map Script And Start At 1 1 Use The Output Clues As Input And Re 1 (29.05 KiB) Viewed 38 times
Exercise 2 Following The Clues Using Your Treasure Map Script And Start At 1 1 Use The Output Clues As Input And Re 2
Exercise 2 Following The Clues Using Your Treasure Map Script And Start At 1 1 Use The Output Clues As Input And Re 2 (46.78 KiB) Viewed 38 times
Exercise 2 Following The Clues Using Your Treasure Map Script And Start At 1 1 Use The Output Clues As Input And Re 3
Exercise 2 Following The Clues Using Your Treasure Map Script And Start At 1 1 Use The Output Clues As Input And Re 3 (83.83 KiB) Viewed 38 times
Exercise 2 - Following the Clues Using your treasure map script and start at (1.1). Use the output clues as input and rerun the script. Stop when you have found the treasure. Here are a few to work with remember to use the interactive input version that you created, you can add cells as needed, and cut and paste to generate the necessary sequence of cells [102] script to access (1,1) modify for interactive input row 1 column= 1 I print (treasuremap[row-1][column-1]) # print a single element 34 [es] script to access (3,4) modify for interactive input row = 3 columns 4 print (treasuremap[row-1][column-1)) print a single element 42 13043# script to access (4,2) modify for interactive input FOM & Ch column 2 print (treasuremap[row-111 colum-11) print a single element 15
ise 1: Find the Treasure Part 1 the structure below (a treasure map) +- 34 21 32 41 25 +----+-- +-- -+----+- 14 42 43 14 31 +----+-- -+----+----+- | 54 45 52 42 23 +----+----+----+----+- 33 15 51 31 35 +----+----+----+----+- +- 21 52 33 13 23 घ
loads/Lab04-TH%20(1).ipynb elp nb X Lab03.ipynb X Lab03-TH.ip X I C▸ Markdown Lab04.ipynb X Labe O Eventually we will write a program to explore the above matrix for a trea Each cell in the matrix contains an integer between 11 and 55; for each v the cell containing the next clue. For example starting in the upper left corner (at row = 1,column = 1), use 43. Move to (4,2), which contains 15, and so on. The treasure is a cell whose value is the same as its coordinates. The program must eventually read in the treasure map data into a 5 by 5 a found the treasure. The "Treasure Hunt Problem" is from the HackerRank.com avaiable at https:/ ]: # script to generate the treasure map (do not modify) treasuremap = [] # empty list to store row, column information treasuremap.append([34,21,32,41,25]) # first row of the map treasuremap.append([14,42,43,14,31]) # second row of the map treasuremap.append([54,45,52,42,23])# third row of the map fourth row of the map treasuremap.append([33,15,51,31,35])# treasuremap.append([21,52,33,13,23])# fifth row of the map
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply