The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Thanks, Ali
Homework Assignment #4 – QuesTons about Modulesin Pseudo CodePart 1 - Review the following pseudo code and answer the quesTon below.void main()Integer num = 0printWelcome ()num = num + 1printAnswer(num)num = num + 1printAnswer()printClosingMessage()end modulevoid printAnswer(Integer answer)output “The answer is “ + answerend modulevoid printWelcomeMessage()String welcome = “Welcome to my program”output welcomeend modulevoid printClosingMessage()output “Thank you for using my program”end moduleoutput “Thank you for using my program”Part 1 QuesTons:1.What are the problems with this code?Mark each line that is a problem and make correcTons to fx theproblem.You may need to strike through code, change code, or add code.2.Mark each line oF code above where module calls are made.3.Are there any parameters in this code?IF so, complete the table:Parameter NameData ±ypeScope - ModuleCorresponding Argument4.Are there any local variables in this code?IF so, complete the table:Local Variable NameData ±ypeScope - Module
Attachments: