Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
54 views
in Computer by (44.8k points)
closed by

Building stairs.

1 Answer

+1 vote
by (44.9k points)
selected by
 
Best answer

Now we are going to build a flight of stairs using the material present in the 1st position of the array. 

At the end of this activity, the final output should look like shown in the image below:

Building stairs

Using Python:

Building stairs

Here are the detailed steps: 

Step 1: Teleporting the builder to the entered position 

Step 2: Make an array named material 

Step 3: Creating a variable length which is the length of the array 

Step 4: Starting a for loop which will run as many times as the length of the array 

Step 5: Moving the builder forward by 1 step and then up by 1 step 

Step 6: Finally, the builder traces the path travelled and puts a block of material present on the 1st position (Chiseled Sandstone) in the array material on the traced path 

Step 7: When you hit play you will that there is a Sandstone stair created.

Using Block code:

Building stairs

Related questions

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...