Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
5th Edition
ISBN: 9780134801155
Author: Tony Gaddis
Publisher: PEARSON
bartleby

Videos

Textbook Question
Book Icon
Chapter 13, Problem 2AW

What will the following program display?

Module main()

Declare Integer num = 0

Call showMe(num)

End Module

Module showMe (Integer arg)

Display arg

If arg < 10 Then

Call showMe(arg + 1)

End If

End Module

Blurred answer
Students have asked these similar questions
Look at the following pseudocode module header: Module myModule(Integer a, Integer h, Integer c) Now look at the following call to myModule: call myModule(3, 2, 1) When this call executes, the value of  will be stored in a, the value of  will be stored in b, and the value of  will be stored in c.
Examine the following pseudocode module header, and then select a statement that calls the module, passing 22 and "Bob" as an argument.Module showOutput(Integer aNumber, String userName)// etc...End Module A)Call showOutput(22, "Bob")B)Call showOutput("Bob", 22)C)Call Module(argument = "Bob", parameter = "22")D)Define Module ("Bob", 22)
Module main() // Local variables Declare Integer gramsFat, calories   // Get fat grams Set gramsFat = getFat()   // Get calories Set calories = getCalories(gramsFat)   // Show percent calories from fat Call showPercent(gramsFat, calories)   End Module   // The getFat function gets grams of fat Function Integer getFat () Declare Integer inputAmount             // enter count             Display “Enter grams of fat:  “             Input inputAmount             // validate rate             While inputAmount < 0                   Display “Quantity must not be less than 0!”                   Display “Enter a valid quantity.”                   Input inputAmount             End While             return inputAmount End Function   // The getCalories function gets number of calories Function Integer getCalories(gramsFat) Declare Integer inputAmount, maxCalories               Set maxCalories = gramsFat * 9             // enter count             Display “Enter number of calories:  “…

Chapter 13 Solutions

Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Graphical User Interfaces: Crash Course Computer Science #26; Author: CrashCourse;https://www.youtube.com/watch?v=XIGSJshYb90;License: Standard YouTube License, CC-BY
Python GUI | How To Make A GUI In Python | Best GUI Framework In Python | Edureka; Author: edureka!;https://www.youtube.com/watch?v=_PHJvjQJa3w;License: Standard Youtube License