Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 6, Problem 1RQ
Program Description Answer
The statement “A sub procedure can accept only one item of data passed to it” is False.
Hence, the correct answer is option “B”.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
When you try to access to a local variable outside the function an error is generatedSelect one:a. Falseb. True
printTodaysDate is a function that accepts no parameters and returns no value.
Write a statement that calls printTodaysDate.
Task 2: Using
Function-Temperature
Table
The formula for converting a temperature from Fahrenheit to Celsius is:
5
C = (F-32)
Where F is the Fahrenheit temperature and C is the Celsius temperature. Write a function
named Celsius that accepts a Fahrenheit temperature as an argument. The function should
return the temperature, converted to Celsius. Demonstrate the function by calling it in a loop
that displays a table of Fahrenheit temp. 0 through 20 and there Celsius equivalents.
The program should display the number of numbers found in the file, the sum of the
numbers, and the average of the numbers.
Chapter 6 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 6 - Prob. 1RQCh. 6 - Prob. 2RQCh. 6 - Prob. 3RQCh. 6 - Prob. 6RQCh. 6 - Prob. 7RQCh. 6 - Prob. 8RQCh. 6 - Which of the following instructs a function to...Ch. 6 - Prob. 10RQCh. 6 - Which of the following is a valid header for a...Ch. 6 - Prob. 14RQ
Ch. 6 - The memory locations listed in a procedure...Ch. 6 - Prob. 16RQCh. 6 - Prob. 17RQCh. 6 - The items in a combo box belong to which...Ch. 6 - Prob. 19RQCh. 6 - Prob. 20RQCh. 6 - Prob. 21RQCh. 6 - Prob. 22RQCh. 6 - Prob. 23RQCh. 6 - Prob. 24RQCh. 6 - Prob. 25RQCh. 6 - Prob. 1ECh. 6 - Prob. 3ECh. 6 - The Donut Shoppe sells four varieties of...Ch. 6 - Prob. 8ECh. 6 - Prob. 11E
Knowledge Booster
Similar questions
- In Python Text-based adventure game: Pretend you are creating a text-based adventure game. At different points in the game, you want the user to select to fight, run, or hide from certain enemies. The selection variable must be sent as an argument into the choice() function. The user should enter 1 to fight, 2 to run, or 3 to hide in the main(). The choice() function should print one of the three options. Add an if statement in the choice() function to make the correct selection.arrow_forwardWhich of the following is false?a. A function can return one or more values to the statement that invoked it.b. A function can accept one or more items of data passed to it.c. The parameterList in a function header is optional.d. At times, a memory location inside the computer’s internal memory may have more than one name.arrow_forwardWhat value will be printed by the program segment if parameters are passed by value?arrow_forward
- What value will be printed by the program segment if parameters are passed by reference??arrow_forwardThe formula for converting a temperature from Fahrenheit to Celsius is C = 5 (F - 32) where F is the Fahrenheit temperature and C is the Celsius temperature. Write a function named celsius that accepts a Fahrenheit temperature as an argument. The function should return the temperature, converted to Celsius. Demonstrate the function by calling it in a loop that displays a table of the Fahrenheit temperatures 0 through 20 and their Celsius equivalents.arrow_forwardQ5: write a program to pass two numbers as parameters to a function which is used to swap the two numbers.arrow_forward
- A(n) is a variable that is used within a function. Select one: a.operator b.property C.parameter d.methodarrow_forwardOnce the lower level functions are written and tested, they are ready to be combined to produce the game. The game loop is where the game is played. A point is awarded to the winner of each round and then added to the total for that contestant (computer or player). If the round is a draw, no points are awarded. The player determines how many rounds are to be played by entering the choice of 1, 2, or 3 (1 for Rock, 2 for Paper, 3 for Scissors) or by entering a 0 to end the contest. Once the contest is over, the winner is displayed. Most of the work has already been completed in the lower level tasks. The main program initializes the final scores, starts the game loop where the matches are played, updating the scores appropriately, and then displays the winner. Here is a pseudocode algorithm showing how to set up the game loop: Write ("Rock, Paper, Scissors Tournament") computerTotal = 0 playerTotal = 0 playerChoice = playerSelection() while (playerChoice != 0) computerChoice =…arrow_forwardWhat are the differences between a function and a procedure?arrow_forward
- In C# Create a function that returns true when num1 is equal to num2; otherwise return false. Examples IsSameNum (4, 8) - false IsSameNum(2, 2) - true IsSameNum (0, 6) - false Don't forget to return the result.arrow_forwardIn C++ please, using basic programming one coding The main menu should show the available options: Show the roster: Displays all the player names and jersey numbers in a numbered list. Ex: 1. Susan Martinez (33), 2. Jake Smith (21), etc. Add a player: Prompts the user to type the player's full name and jersey number. Then adds the player to the roster. Remove a player: Displays the roster and prompts the user to enter the number of the player to remove. Then removes the player from the roster. Quit: Quits the program. The program should display the main menu after the user shows the roster, adds a player, or removes a player. The program only terminates when the user chooses the quit option. Data validation should be used where appropriate. Ex: The user should not be able to choose an option that doesn't exist or delete a player that doesn't exist. The roster should be kept in alphabetic order by the players' full names. Ex: If Alice Chang (9) is added to a roster with Jake Smith and…arrow_forwardC++ beginner level Code should follow the flowchart design exactly. Note that there are four functions that should all be called from main. Use prototypes for your functions and code the function definitions AFTER main. Check your code with several numbers to see if correct results are produced Do NOT use loops No input validation is required Be sure your name appears at the beginning of your file and at the end as Programmer Input items should be on the same line as the prompt. For the exit option (5) assign the price a negative number. Inside main your code can check if the price is positive (> 0). If it is, process the remaining three functions. Always print your name as Programmer at the end.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 with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher: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