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
Concept explainers
Textbook Question
Chapter 3, Problem 11MC
A(n) ____ is a special variable that receives a piece of data when a module is called.
- a. argument
- b. parameter
- c. header
- d. packet
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
program Credit Card Validator - Takes in a credit card number from a common credit card vendor (Visa, MasterCard, American Express, Discover) and validates it to make sure that it is a valid number (look into how credit cards use a checksum).
- this is the c++. please use #include <iostream>
Design a module named timesTen. The module should accept an Integer argument. When the module is called, it should display the product of its argument multiplied times 10.
C PROGRAMMING LANGUAGE
*Display the output nicely
*Please make comments while typing
write a code that calculates mileage reimbursement for anemployee a rate of $0.70 per mile. This code needs to interact with the user. Sample Output on picture.
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
Why is the study of database technology important?
Database Concepts (8th Edition)
Sorting Objects with the Quicksort Algorithm The IntQuickSorter class presented in this chapter sorts an array ...
Starting Out with Java: From Control Structures through Data Structures (3rd Edition)
Write a program to print the value of EOF.
C Programming Language
For each of the following activities, give a PEAS description of the task environment and characterize it in te...
Artificial Intelligence: A Modern Approach
The file seq-full.hcl contains the HCL description for SEQ, along with the declaration of a constant IIADDQ hav...
Computer Systems: A Programmer's Perspective (3rd Edition)
Does it matter whether we write publicclassTicketMachineorclasspublicTicketMachine in the outer wrapper of a cl...
Objects First with Java: A Practical Introduction Using BlueJ (6th 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
- A(n) is a special variable that receives a piece of data when a module is called.a. argumentb. parameterc. headerd. packetarrow_forwardIn the code below, why is it that the displayName() module cannot print the person’s name?Start Call getInput() Call displayName()StopModule getInput() Declare String name Display "Enter your name: " Input nameEnd ModuleModule displayName() Display "Your name is: " + nameEnd Modulearrow_forwardCreate a time conversion program that prompts the user for a time in minutes. The program will convert the minutes to seconds and the minutes to an hour: minute format.arrow_forward
- num4. WHat is the pseudocode and flowchart#include<iostream>using namespace std; int main(){ int x; cout<<"\nEnter the integer: "; cin>>x; int num4 = x--; cout<<"\nx = "<<x<<" And num4 = "<<num4; return 0;}arrow_forwardCreate a C++ console project in Visual Studio or another tool. Create an application that converts a student’s grade percentage to a letter grade following the rules below: Grade Percentage A 100-90 B 89-80 C 79-70 D 69-60 F 59-0 Your code should prompt for and get the student’s percentage as input, and output an error message or a letter grade. Note: Your code should test these cases: Percentages less than 0 – error message. Percentages greater than 100 – error message. Percentages in the range 0-100 – letter grade. Please make sure your code can handle these cases. Tips: Use operator and ‘||’ for the conditional control statement. Use instruction ‘if’ for conditional control. Make the following edits to the code file: Complete the header comment. 2) Declare two double variables: grade and percentage. 3) Assign the value of percentage from input. 4) End program if percentage is smaller than 0 and…arrow_forwardDevelop a flowchart or develop pseudocode that will design an application for Bob’s E-Z Loans. Input: client's account number, client's loan amount, monthly payment amount Processing: After the monthly payment is made, a finance charge of 1 percent is added to the balance to calculate the new loan balance. Output: client’s account number, the word "Month" and the month number (Month 1, Month 2, Month 3 etc.) and the new loan balance. Create a loop in the detail module to output the information for each month as long as the loan balance is greater than 0. You will need a counter (month) which you would increment each time through the loop for the month number. Once the balance is zero or less, return to the main program logic to check to see if there is another client to process (end of file test). If so, control would pass back to the detail module to process the next client. Decide on a sentinel value to end the program. You could check the client number for -99 which indicates…arrow_forward
- FYI: Please write the code in Pseudocode (no programming language please) 1. Write pseudocode module that loops through random numbers until it generates the "lucky number". In the main(), ask the user to enter a lucky number between 1 to 10 Validate the user’s input Pass the lucky number to the module from the main() In the module, display each number that gets randomly generated. A number in the range of 1-10 Return a count of the number of times it took to get the “luck number” Write the entire program including the Main()arrow_forwardnum3. What is the pseudocode and flowchart #include <iostream>using namespace std; int main(){ int x,num3; cout<<"Enter the Integer :"; cin>>x; num3=--x; cout<<"\nnum3 : "<<num3; cout<<"\nx : "<<x; return 0;}arrow_forwardAn application requires a user to enter two numbers.Once the user has entered the two numbers, the applicathion will call a module to calculate the average of the two numbers.Once the average of the two numbers have been calculated , another module will be called to determine if the average of the two numbers is greater than 75.If the average of the two numbers is greater then 75, the message 'congratulations, you are in the top 5', will be displayed". Write the pseudocode that will adequately represent the logic contained in the scenarioarrow_forward
- 1.Design Windows form application which will ask the user to enter two numbers. The program should print out the sum of the two numbers. 2.Design Windows form application which will ask the user to input a number. The program should print out the square of that number if the number is negative. 3.Write VB.NET project which will ask the uscr for a number. If the number is positive it should print out the message the number is positive. If the number is negative it should print out the number is negative.arrow_forwardC++ Question Hello Please answer the attached C++ programming question correctly, just as the prompt states. Also, make sure that the code is working properly. Thank you.arrow_forward.Design Windows form application which will ask the user to input a number. Theprogram should print out the square of that number if the number is negative.arrow_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 Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Python Tutorial #10; Math Functions in Python; Author: Art of Engineer;https://www.youtube.com/watch?v=OviXsGf4qmY;License: Standard YouTube License, CC-BY