Computer Science: A Structured Programming Approach Using C, Third Edition
3rd Edition
ISBN: 9780534491321
Author: Behrouz A. Forouzan, Richard F. Gilberg
Publisher: Course Technology, Inc.
expand_more
expand_more
format_list_bulleted
Concept explainers
Expert Solution & Answer
Chapter 1, Problem 34PS
Explanation of Solution
Given: The following flowchart for calling a person.
To find: The pseudocode of the following flowchart for calling a person.
Solution:
ï‚· Pseudocode:
These statements are used to send the message to the coder about how to implement a program. The pseudocode is mainly for the coder and not for the machine.
The process for calling is as follows...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Draw a flowchart for my code above.
Can you show the flowchart?
In this lab, you use a counter-controlled while loop in a C++ program provided for you. When completed, the program should print the numbers 0 through 10, along with their values multiplied by 2 and by 10. The data file contains the necessary variable declarations and some output statements.
Instructions
Ensure the source code file named Multiply.cpp is open in the code editor.
Write a counter-controlled while loop that uses the loop control variable to take on the values 0 through 10. Remember to initialize the loop control variable before the program enters the loop.
In the body of the loop, multiply the value of the loop control variable by 2 and by 10. Remember to change the value of the loop control variable in the body of the loop.
Execute the program by clicking the Run button. Record the output of this program.
**CODE GIVEN**
// Multiply.cpp - This program prints the numbers 0 through 10 along
// with these values multiplied by 2 and by 10.
// Input: None
// Output:…
Chapter 1 Solutions
Computer Science: A Structured Programming Approach Using C, Third Edition
Ch. 1 - Computer software is divided into two broad...Ch. 1 - Prob. 2PSCh. 1 - Prob. 3PSCh. 1 - The programmer design tool used to design the...Ch. 1 - Blackbox testing gets its name from the concept...Ch. 1 - Prob. 6PSCh. 1 - Prob. 7PSCh. 1 - Which of the following is not a computer language?...Ch. 1 - The computer language that most closely resembles...Ch. 1 - Prob. 10PS
Ch. 1 - Prob. 11PSCh. 1 - Prob. 12PSCh. 1 - The is a program design tool that is a visual...Ch. 1 - Prob. 14PSCh. 1 - Describe the two major components of a computer...Ch. 1 - Computer hardware is made up of five parts. List...Ch. 1 - Prob. 17PSCh. 1 - Describe the two major categories of software.Ch. 1 - Prob. 19PSCh. 1 - Prob. 20PSCh. 1 - Prob. 21PSCh. 1 - Prob. 22PSCh. 1 - Prob. 23PSCh. 1 - Prob. 24PSCh. 1 - Prob. 25PSCh. 1 - Prob. 26PSCh. 1 - Prob. 27PSCh. 1 - Describe the three tools that a programmer may use...Ch. 1 - Prob. 29PSCh. 1 - Prob. 30PSCh. 1 - Prob. 31PSCh. 1 - Write pseudocode for calcLivingAreas, Figure 1-12,...Ch. 1 - Prob. 33PSCh. 1 - Prob. 34PS
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
- In this lab, you use a counter-controlled while loop in a C++ program provided for you. When completed, the program should print the numbers 0 through 10, along with their values multiplied by 2 and by 10. The data file contains the necessary variable declarations and some output statements. Instructions Ensure the source code file named Multiply.cpp is open in the code editor. Write a counter-controlled while loop that uses the loop control variable to take on the values 0 through 10. Remember to initialize the loop control variable before the program enters the loop. In the body of the loop, multiply the value of the loop control variable by 2 and by 10. Remember to change the value of the loop control variable in the body of the loop. Execute the program by clicking the Run button. Record the output of this program. Strictly use the given code // Multiply.cpp - This program prints the numbers 0 through 10 along // with these values multiplied by 2 and by 10. // Input:…arrow_forwardIn this lab, you use a counter-controlled while loop in a C++ program provided for you. When completed, the program should print the numbers 0 through 10, along with their values multiplied by 2 and by 10. The data file contains the necessary variable declarations and some output statements. Instructions Ensure the source code file named Multiply.cpp is open in the code editor. Write a counter-controlled while loop that uses the loop control variable to take on the values 0 through 10. Remember to initialize the loop control variable before the program enters the loop. In the body of the loop, multiply the value of the loop control variable by 2 and by 10. Remember to change the value of the loop control variable in the body of the loop. Execute the program by clicking the Run button. Record the output of this program. **CODE GIVEN** // Multiply.cpp - This program prints the numbers 0 through 10 along // with these values multiplied by 2 and by 10. // Input: None // Output:…arrow_forwardWhich statement type is a loop control structure that includes a loop-control variable, a test, and an update in its statement header? a. for b. do c. do...while O d. casearrow_forward
- Which statement about counter variables used in program loops is correct? The counter variable should be initialized as the first statement within the loop command block that will be repeatedly executed. It is best practice for counter variables to have global scope. The value of the counter variable changes with each iteration of the loop. It is common for programmers to use variables named counter1, counter2, and counter3 for program loops.arrow_forwardGive the difference between flowchart and pseudo code.arrow_forwardWrite a pseudocode that will count all the even numbers up to a user defined stopping point. Stopping point should be an INTEGER from 10 to 100; otherwise, write that it is an "Invalid Input". Create a flowchart based on your pseudocode.arrow_forward
- By using C++ programming language, please provide the source code, screenshot of the program output and flowchart thanks.arrow_forwardFlowchart,code and outputarrow_forwarduse c# You are given two dices. Each dice has 6 faces and can generate a number between 1 and 6. The minimum number generated by the two dice is 2 and maximum number is 12. Throw the dice and if the number generated is less than 7 than you lose and if it is greater or equal to 7 than you win. You will make use of Random function and a selection structure (if/else) to write the code.arrow_forward
- Why is it so important to properly initialise accumulator variables?arrow_forwardRunning on a particular treadmill you burn 3.9 calories per minute. Design a program that uses a loop to display the number of calories burned after 10, 15, 20, 25, and 30 minutes. please program source code and output image in c++arrow_forwardin python for glass box testing of a while loop, you should test cases where: a) the while loop is not entered b) the body of the while loop is executed just once c) the body of the while loop is executed more than once e) all of these f) exiting the loop in the middle of the bodyarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,