Question: Implement the pseudo code above in Ada program (hw2.adb file) but name the top procedure hw2 (instead of main). If the exact implementation does not

Implement the pseudo code above in Ada program (hw2.adb file) but name the top procedure hw2 (instead of main). If the exact implementation does not compile, explain why and make minimal corrections to eliminate the compiler errors. The result should be printed as a sequence of numbers in a single line, each number preceded with a blank space. Make sure to print a new line character at the end of the results. Show what the program prints and explain why.
1. procedure main() 2. 3. a : integer := 1 b : integer 2 procedure middle() b : integer:- a 4. 6. procedure inner() print a, b opes, and Bindings 8. a : integer := 3 9. 10. -- body of middle nner() print a, b 12. 13. 14. body of main middle() print a, b 1. procedure main() 2. 3. a : integer := 1 b : integer 2 procedure middle() b : integer:- a 4. 6. procedure inner() print a, b opes, and Bindings 8. a : integer := 3 9. 10. -- body of middle nner() print a, b 12. 13. 14. body of main middle() print a, b
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
