Given an integer positive number, write a function named prg_question_2 to print a number pattern similar to the example given below for number 9 (using the function ca prg_question_2(9)). 9 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 7 6 5 4 3 2 1 6 5 4 3 2 1 5 4 3 2 1 4 3 2 1 3 2 1 21 1 Do the following: 1. Follow UMPIRE process to get the algorithm. Write only the algorithm as code comments 2. Implement your function 3. In your main program run it for number = 20 and verify that the output pattern is similar to above. Please follow the test criteria given in the code template (3

icon
Related questions
Question

Pl

Given an integer positive number, write a function named prg_question_2 to print a
number pattern similar to the example given below for number 9 (using the function ca
prg_question_2(9)).
9 8 7 6 5 4 3 2 1
8 7 6 5 4 3 2 1
7 6 5 4 3 2 1
6 5 4 3 2 1
5 4 3 2 1
4 3 2 1
3 2 1
2
2 1
1
Do the following:
1. Follow UMPIRE process to get the algorithm. Write only the algorithm as code
comments
gints)
2. Implement your function
3. In your main program run it for number = 20 and verify that the output pattern is
similar to above. Please follow the test criteria given in the code template
Transcribed Image Text:Given an integer positive number, write a function named prg_question_2 to print a number pattern similar to the example given below for number 9 (using the function ca prg_question_2(9)). 9 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 7 6 5 4 3 2 1 6 5 4 3 2 1 5 4 3 2 1 4 3 2 1 3 2 1 2 2 1 1 Do the following: 1. Follow UMPIRE process to get the algorithm. Write only the algorithm as code comments gints) 2. Implement your function 3. In your main program run it for number = 20 and verify that the output pattern is similar to above. Please follow the test criteria given in the code template
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer