Question 24

Summary: (a) Define procedure and function in the imperative and functional programming paradigms. Use small fragments of code in languages to illustrate the definitions. Explain the reasons for the development of the functional paradigm. (b) Identify the paradigm supported by the programming language used to write the program. Justify listing THREE features and give examples from the code. Extend the show_capital module (line 27) so that it prompts for and accepts the capital of the country not in the database. (c) Compare and contrast the appropriateness of the OOP paradigm for the software solution with the three types of paradigms.