Prelude to Programming
6th Edition
ISBN: 9780133750423
Author: VENIT, Stewart
Publisher: Pearson Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 1, Problem 15RE
Program Plan Intro
To answer what should be done after coding a computer program.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Which of the following is the third step in the problem-solving process?
a. Analyze the problem
b. Code the algorithm into a program
c. Desk-check the algorithm
d. Plan the algorithm
Instructions
A local biologist needs a program to predict population growth. The inputs would be:
1. The initial number of organisms, as an int
2. The rate of growth (a real number greater than 1), as a float
3. The number of hours it takes to achieve this rate, as an int
4. A number of hours during which the population grows, as an int
For example, one might start with a population of 500 organisms, a growth rate of 2, and a growth period to achieve this rate of 6 hours. Assuming that none of the organisms die, this would imply that this population would double in size every 6 hours. Thus, after allowing 6 hours for growth, we would have 1000 organisms, and after 12 hours, we would have 2000 organisms.
Write a program that takes these inputs and displays a prediction of the total population.
An example of the program input and output is shown below:
Enter the initial number of organisms: 10
Enter the rate of growth (a real number › 1]: 2
Enter the number of hours to achieve the…
Turning an issue into an algorithm is called a "computer programme," which is just a term.
Chapter 1 Solutions
Prelude to Programming
Ch. 1 - A computer _________________ is a list of...Ch. 1 - Prob. 2RECh. 1 - Prob. 3RECh. 1 - The term _______________ refers to the numbers,...Ch. 1 - The first of the following statements WriteEnter...Ch. 1 - Prob. 6RECh. 1 - Prob. 7RECh. 1 - In most programming languages, variables that...Ch. 1 - Prob. 9RECh. 1 - A(n) __________ statement is displayed on the...
Ch. 1 - A floating point variable requires __________...Ch. 1 - Roughly speaking, a(n) _____ is any symbol that...Ch. 1 - Prob. 13RECh. 1 - Prob. 14RECh. 1 - Prob. 15RECh. 1 - Prob. 16RECh. 1 - Prob. 17RECh. 1 - Prob. 18RECh. 1 - Prob. 19RECh. 1 - Prob. 20RECh. 1 - Prob. 21RECh. 1 - Prob. 22RECh. 1 - Prob. 23RECh. 1 - Prob. 24RECh. 1 - A rational number is any number that can be...Ch. 1 - T A number stored as an integer takes up less...Ch. 1 - If the value of the variable MyAge is 3, then the...Ch. 1 - Prob. 28RECh. 1 - Prob. 29RECh. 1 - Suppose X=3 and Y=4. If all parentheses were...Ch. 1 - Suppose X=14. Give the value of each of the...Ch. 1 - Suppose X=12,Y=6, and Z=5. Give the value of each...Ch. 1 - What is the difference between the following two...Ch. 1 - Given that the variable named Boy =Joey� and the...Ch. 1 - Prob. 35RECh. 1 - Write a pair of statements that prompts for and...Ch. 1 - Write a pair of statements that prompts for and...Ch. 1 - Write a series of statements that does the...Ch. 1 - Write a series of statements that does the...Ch. 1 - Suppose that Number1=15 and Number2=12 are both of...Ch. 1 - If Name1=Marcy,Text1=isnow,Text2=yearsold., and...Ch. 1 - It Character1 and Character2 are single...Ch. 1 - Exercises 43-50 refer to the following program:...Ch. 1 - Exercises 43-50 refer to the following program:...Ch. 1 - Exercises 43-50 refer to the following program:...Ch. 1 - Exercises 43-50 refer to the following program:...Ch. 1 - Exercises 43-50 refer to the following program:...Ch. 1 - Exercises 43-50 refer to the following program:...Ch. 1 - Prob. 49RECh. 1 - Exercises 43-50 refer to the following program:...Ch. 1 - Write a list of instructions (like those that...Ch. 1 - In Programming Challenges 2-6, write a program...Ch. 1 - In Programming Challenges 2-6, write a program...Ch. 1 - In Programming Challenges 2-6, write a program...Ch. 1 - In Programming Challenges 2-6, write a program...Ch. 1 - In Programming Challenges 2-6, write a program...
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 computer science, it is usual practice to use a programming language in order to solve a wide range of problems. When you say "general-purpose programming language," what exactly do you mean?arrow_forwardThe graphic algorithm representation is the ... Select one: O a. Problem description Ob. Pseudo code c. Flow chart d. Criteria sheet Oarrow_forwardCreate an excel program that can solve an engineering non-linear equation using bisection method (200 iterations). You can choose your own non-linear equation. Make sure to explain what is the use of the equation. Make sure the initial guess values can be changed by the user.arrow_forward
- Learning to program means learning how to solve problems using code. Conceptually it is not very difficult to write a program that solves a problem that you can solve yourself. The skill you need to acquire is thinking very precisely about how you solve the problem and breaking it down into steps that are so simple that a computer can execute them. I encourage you to first solve a few instances of a problem by hand and think about what you did to find the solution. For example if the task is sorting lists, sort some short lists yourself. A reasonable method would be to find the smallest element, write it down and cross it out of the original list and repeat this process until you have sorted the whole list. Then you have to teach the computer 1) how to find the smallest element, 2) how to write it down, 3) how to cross it out, and wrap this in a loop. Then continue this task breakdown process until you’re confident you know how to write the necessary program.arrow_forwardA computer program is created by converting an existing solution to a computer program. The procedure's name is what?arrow_forwardPython Coding AlgorithmPlease check the task description. Use the test case input as a test case to see if the final code works, as the code's output should be similar to the given sample output. Hopefully, you succeed. TaskIdentify the relationship between the sets of inputs. The inputs represent the wires in a Bulb's Wiring System. Concept-The Bulb system is identical to an electronic circuit, so Basic Circuit Rules and Ohm's Law apply.-Wires in a Series relationship are denoted as Linear, and those in Parallel are denoted as SidebySide-Therefore, the relationships are either Linear or SidebySide. If pairs of wires are neither Linear nor SidebySide, it will be denoted as having Neither relationship.-Wires with similar origins and destinations have a SidebySide relationship. On the other hand, Linear relationships are more complex as they require a continuous and singular wire connection. The flow of electricity starts from the "Start" point and ends at the "End" point.Note: Check…arrow_forward
- Python Question You are working on a problem where the size of each test case is between 1 and 100 integers and where the timeout is 4 seconds.You have developed a cubic time algorithm for the problem that gives the correct answeron all test cases.If you submit that solution, will you pass all test cases in time?Please answer YES or NO and then briefly explain your answer.To do :YES/NO answer with explanationarrow_forwardDo you believe that the process of making the program itself is the most crucial step?arrow_forwardIn computer science, it is customary to use a programming language to solve a number of problems. What are you referring to when you say "general-purpose programming language"?arrow_forward
- 4. c. Display all the numbers the user entered that are greater than 100. Numbers smaller than 100 are ignored. The numbers should be displayed in the same order as they were entered by the user. Develop a simulation program to simulate the appearance of text message a phone receives. a. Ask user how many text messages one would receive in 12 hours. b. Ask user how many hours the user wants to run the simulation. C. Your program will display the number of seconds from the beginning of the simulation when a text message is received like this: 452 890 1593.arrow_forwardPlease help in guiding me in the necessary steps i should take when tackling this assignment, there is a main.cpp given Objective: The main objective of this assignment is to assess students’ ability to apply the stepwise refinement process to develop a new algorithm and carry that through to the implementation of the program. Implementation must follow the top-down design approach, where the solution starts by describing the general functionality of a game. Next, more details are provided in successive steps to refine the implementation. Problem Description: Assume you are hired by a game developing company to write a new computer game for kids. This company has decided to create a version of tricky triangles with a few different rules hoping that this new game will be more entertaining. If you are unfamiliar with the original game of tricky triangle, please learn how to play. This modified version of tricky triangles that you required to create is very much like the original game.…arrow_forwardTo convert a problem into an algorithm, we require the word "computer programme," which is nothing more than a sentence.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- A+ Guide To It Technical SupportComputer ScienceISBN:9780357108291Author:ANDREWS, Jean.Publisher:Cengage,Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
A+ Guide To It Technical Support
Computer Science
ISBN:9780357108291
Author:ANDREWS, Jean.
Publisher:Cengage,
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
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,