Question: Given the pseudocode above, implement the program above in Ada (example.adb). If the exact implementation above does not compile, explain why and make small corrections

Given the pseudocode above, implement the program above in Ada (example.adb). If the exact implementation above does not compile, explain why and make small corrections in order to fix the compilation errors. The result should be printed as a sequence of numbers in a line, each number with a blank space before it. Be sure to print a new line character at the end of the results. Show what the program prints out and explain why.
The ada program should compile using "gnatmake example.adb -o driver"
3.5 Consider the following pseudocode: 1. procedure main() 2. 3. a : integer: 1 b : integer: 2 procedure middle() 4. 5. b : integer := a 6. procedure inner) print a, b lames, Scopes, and Bindings 8. a : integer 3 _ body of middle inner() print a, b 10. 12. 13. 14. body of main middle() print a, b 3.5 Consider the following pseudocode: 1. procedure main() 2. 3. a : integer: 1 b : integer: 2 procedure middle() 4. 5. b : integer := a 6. procedure inner) print a, b lames, Scopes, and Bindings 8. a : integer 3 _ body of middle inner() print a, b 10. 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
