Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
5th Edition
ISBN: 9780134801155
Author: Tony Gaddis
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 3, Problem 5AW
Design a module named getNumber, which uses a reference parameter variable to accept an Integer argument. The module should prompt the user to enter a number and then store the input in the reference parameter variable.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Question 17 mammi .PSEUDOCODE
Full explain this question and text typing work only We should answer our question within 2 hours takes more time then we will reduce Rating Dont ignore this line
The value passed through the parameter is called a(n).
Index
argument
statement
number
Question 19
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
Call Module(argument = "Bob", parameter = "22")
Call showOutput(22, "Bob")
Call showOutput("Bob", 22)
Define Module ("Bob", 22)
Chapter 3 Solutions
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Ch. 3.1 - What is a module?Ch. 3.1 - Prob. 3.2CPCh. 3.1 - Prob. 3.3CPCh. 3.1 - Prob. 3.4CPCh. 3.1 - Prob. 3.5CPCh. 3.2 - In most languages, a module definition has what...Ch. 3.2 - Prob. 3.7CPCh. 3.2 - Prob. 3.8CPCh. 3.2 - Prob. 3.9CPCh. 3.3 - What is a local variable? How is access to a local...
Ch. 3.3 - What is a variables scope?Ch. 3.3 - Prob. 3.12CPCh. 3.3 - Prob. 3.13CPCh. 3.4 - Prob. 3.14CPCh. 3.4 - What are the variables that receive pieces of data...Ch. 3.4 - Prob. 3.16CPCh. 3.4 - Prob. 3.17CPCh. 3.4 - Prob. 3.18CPCh. 3.5 - What is the scope of a global variable?Ch. 3.5 - Give one good reason that you should not use...Ch. 3.5 - Prob. 3.21CPCh. 3 - A group of statements that exist within a program...Ch. 3 - Prob. 2MCCh. 3 - The first line of a module definition is known as...Ch. 3 - Prob. 4MCCh. 3 - Prob. 5MCCh. 3 - A design technique that programmers use to break...Ch. 3 - Prob. 7MCCh. 3 - A _____ is a variable that is declared inside a...Ch. 3 - A(n) ____ is the part of a program in which a...Ch. 3 - A(n) ____ is a piece of data that is sent into a...Ch. 3 - A(n) ____ is a special variable that receives a...Ch. 3 - When _____, only a copy of the argument's value is...Ch. 3 - When ____, the module can modify the argument in...Ch. 3 - A variable that is visible to every module in the...Ch. 3 - When possible, you should avoid using _____...Ch. 3 - The phrase divide and conquer means that all of...Ch. 3 - Prob. 2TFCh. 3 - Module names should be as short as possible.Ch. 3 - Prob. 4TFCh. 3 - A flowchart shows the hierarchical relationships...Ch. 3 - Prob. 6TFCh. 3 - A statement in one module can access a local...Ch. 3 - In most programming languages, you cannot have two...Ch. 3 - Programming languages typically require that...Ch. 3 - Most languages do not allow you to write modules...Ch. 3 - When an argument is passed by reference, the...Ch. 3 - Prob. 12TFCh. 3 - Prob. 1SACh. 3 - Prob. 2SACh. 3 - Prob. 3SACh. 3 - What is a local variable? What statements are able...Ch. 3 - In most languages, where does a local variables...Ch. 3 - What is the difference between passing an argument...Ch. 3 - Prob. 7SACh. 3 - Design a module named timesTen. The module should...Ch. 3 - Examine the following pseudocode module header,...Ch. 3 - Look at the following pseudocode module header:...Ch. 3 - Assume that a pseudocode program contains the...Ch. 3 - Design a module named getNumber, which uses a...Ch. 3 - What will the following pseudocode program...Ch. 3 - What will the following pseudocode program...Ch. 3 - Find the error in the following pseudocode. Module...Ch. 3 - Find the error in the following pseudocode. Module...Ch. 3 - Find the potential error in the following...Ch. 3 - Prob. 4DECh. 3 - Kilometer Converter Design a modular program that...Ch. 3 - Prob. 2PECh. 3 - How Much Insurance? Many financial experts advise...Ch. 3 - Prob. 4PECh. 3 - Prob. 5PECh. 3 - Prob. 6PECh. 3 - Calories from Fat and Carbohydrates A nutritionist...Ch. 3 - Prob. 8PECh. 3 - Prob. 9PECh. 3 - Monthly Sales Tax A retail company must file a...Ch. 3 - Prob. 11PE
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
Identify the zero-force members in the truss. Prob. F6-5
INTERNATIONAL EDITION---Engineering Mechanics: Statics, 14th edition (SI unit)
Explain what can be done with primary keys to eliminate key ripple effects as a database evolves.
Modern Database Management
Under what circumstances would a subclass need to override a superclass method?
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
Essay Class Design an Essay class that is derived from the GradedActivity class presented in this chapter. The ...
Starting Out with C++ from Control Structures to Objects (9th Edition)
Suppose you decide to mill the flat surface described in Problems and 12. The work will be done on a vertical m...
Degarmo's Materials And Processes In Manufacturing
A(n) _____ is a component of a class that references data. a. method b. instance c. data attribute d. module
Starting Out with Python (4th Edition)
Knowledge Booster
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
- The parameter option to use when the module that the variable is to be shared with is to have its own copy of the variable ByVal ByRef This is Always Done Can’t be Donearrow_forwardStarting Out With Visual Basic 8th edition chapter 6 #1 made in visual studio 2017 Retail Price CalculatorWrite an application that accepts from the user the wholesale cost of an item and itsmarkup percentage. (For example, if an item’s wholesale cost is $5 and its retailprice is $10, then the markup is 100%.)The program should contain a function named CalculateRetail that receives thewholesale cost and markup percentage as arguments, and returns the retail priceof the item. When the user clicks the Get Retail button, the program should do the following:• Verify that the values entered by the user for the wholesale cost and the markuppercent are numeric and not negative• Call the CalculateRetail function• Display the retail cost as returned from the functionarrow_forwardC# Account numbers sometimes contain a check digit that is the result of a mathematical calculation. The inclusion of the digit in an account number helps ascertain whether the number is a valid one. Write an application named CheckDigit that asks a user to enter a four-digit account number and determines whether it is a valid number. The number is valid if the fourth digit is the remainder when the number represented by the first three digits of the four-digit number is divided by 7. For example, 7770 is valid, because 0 is the remainder when 777 is divided by 7. If the account number is valid, output The account number is valid. If the account number is invalid output Invalid. If the account number is too short or too long output Account number invalid - it must have 4 digits.arrow_forward
- In python Expense tracker: the user should be able to enter expenses per category (food, clothing, entertainment, rent, etc) and the application should track the expenses per week or month. The user should be able to see their total expenses for a month of their choice for each category and a total monthly expense. The monthly expense report should include average expenses for each category for the year and indicate if the user expense for the month selected is lower or higher than the annual average. Also, the report should display the percentage of expenses from each category out of the total monthly expenses. Project application requirements: Requirements description Basic Points: * Project should have a functioning menu * Project should have adequate functions (minimum 3 functions) * Project should make use of files to save the data * Project should handle adequate exceptions * Project should display information formatted adequately * Project should make use of lists or…arrow_forwardC# Question Create a desktop application that allows the user to enter a maximum integer. The application should sum all the even integers from zero up to and including that maximum number if it is even. The sum should be displayed in the form. For example: For a maximum integer of 50 the sum is 650. For a maximum integer of 11 the sum is 30. The program should have a method named SumEvens that receives the maximum integer as an argument and returns the sum of the even numbers. The SumEvens method should use a for loop to calculate the sum of the even numbers.arrow_forwardA code in c++ or python A program that asks you to enter the name of a movie or series, and then proceed to ask how much you rate the movie or series on a scale of 1 to 10, then ask what rating you would give the series or movie, and have options for example: G, PG, PG-13, R and finally, a thank you message for your comments appears.arrow_forward
- #3 – This pseudocode has multiple problems. Fix the calling statement and the definition below so that the routine accepts 3 grades as parameters and returns the average into a variable. Call calcPercentageof(Boolean Number) Module calcPercentageOf (numerator, num2) Set percentage = num / num2 * 100 End Module Write the correct call statement and module definition below:.arrow_forward1. Retail Price CalculatorWrite an application that accepts from the user the wholesale cost of an item and its markup percentage. (For example, if an item’s wholesale cost is $5 and its retail price is $10, then the markup is 100%.)The program should contain a function named CalculateRetail that receives the wholesale cost and markup percentage as arguments, and returns the retail price of the item. The application’s form should look something like the one shown in Figure 6-22.arrow_forwardCreate a new module named beautyid.py. Define a function named beautyidtag that accepts 4 parameters: face, hair, number, vitamins. The function should create a 10-digit identifier composed of the first 2 letters of the user input for the variable face, first 2 letters from the user input for the variable hair, the number from the variable number, the number of vitamins, and a random integer between 11 and 90. Identifiers must all be uppercase. Return the value of the 10-digit identifier back to the calling method when called. I have made another module called beautyinventory.py where the variables are stored. I'm going to import this module back into beautyinventory.pyarrow_forward
- 1.In your game console class, add a start function which should prompt the user for an email address. -Use a regular expression to validate that it is a valid email address and prompt them again until they enter a valid one. -Next, prompt the user to enter a credit card number and use a regular expression to validate the credit card. -Prompt them again until they enter a valid one and once done, display the game menu. Existing Code below: class Game {constructor(name){this.name = name;}} class GameConsole{constructor(){this.games = [];} load(){var gameNames = ["Zelda", "Halo", "Mario", "The God Among Us\n"];for (var i = 0; i < gameNames.length; i++) {let game = new Game(gameNames[i]);this.games.push(game);}} log(){console.log("Games Loaded:");for (var i = 0; i < this.games.length; i++) {var name = this.games[i].name;console.log(name);}}} let gamecon = new GameConsole();gamecon.load();gamecon.log(); const prompt = require('prompt-sync')(); var adventurersName = ["Captain…arrow_forwardcreate a Python application that makes use of repetition control structures in Python. Scenario: You are creating an application that will simulate the functions of an ATM for a bank. The user will be able to open the application, check their balance on their account, withdraw a specific amount that does not exceed their balance or deposit specific amounts into their account. The user should be able to do all these functions in succession without having to restart the application over and over. The application should first ask for a command from the user when started, the user can do 4 different commands on the application: Check Balance: The user will be able to check their current balance on their account. This should show the most updated balance if the user has made a withdrawal or deposit to the account. The account starts off with a balance of 100.00 PHP. Withdraw Money: The user can input an amount to withdraw from their account. This should not exceed the total balance that is…arrow_forwardThe intended purpose of the following module is to set the temp parameter to the value 32.0 if it is not already equal to 32.0. This will not work as the programmer expects, however. Find the problem. Module resetTemperature(Real Ref temp) If NOT temp == 32.0 Then Set temp = 32.0 End If End Modulearrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
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