Computer Science: An Overview (12th Edition)
12th Edition
ISBN: 9780133760064
Author: Glenn Brookshear, Dennis Brylow
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 3.1, Problem 2QE
Which of the following activities require real-time processing?
- a. Printing mailing labels
- b. Playing a computer game
- c. Displaying numbers on a smartphone screen as they are dialed
- d. Executing a
program that predicts the state of next year’s economy - e. Playing an MP3 recording
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Instruction: Create a notation resembling a simplified programming language with the input and output of a counting problem.
Write a program with the specified input and output:
Create a program for geometric sequence (initial value and common ratio)
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…
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
Chapter 3 Solutions
Computer Science: An Overview (12th Edition)
Ch. 3.1 - Identify examples of queues. In each case,...Ch. 3.1 - Which of the following activities require...Ch. 3.1 - Prob. 3QECh. 3.1 - Prob. 4QECh. 3.2 - Prob. 1QECh. 3.2 - What is the difference between application...Ch. 3.2 - Prob. 3QECh. 3.2 - Prob. 4QECh. 3.3 - Summarize the difference between a program and a...Ch. 3.3 - Summarize the steps performed by the CPU when an...
Ch. 3.3 - Prob. 3QECh. 3.3 - If each time slice in a multiprogramming system is...Ch. 3.3 - Prob. 5QECh. 3.4 - Prob. 1QECh. 3.4 - Suppose a two-lane road converges to one lane to...Ch. 3.4 - Prob. 3QECh. 3.4 - Prob. 4QECh. 3.5 - Prob. 1QECh. 3.5 - Prob. 2QECh. 3.5 - If a process in a multiprogramming system could...Ch. 3 - List four activities of a typical operating...Ch. 3 - Summarize the distinction between batch processing...Ch. 3 - Prob. 3CRPCh. 3 - Prob. 4CRPCh. 3 - What is a multitasking operating system?Ch. 3 - Prob. 6CRPCh. 3 - On the basis of a computer system with which you...Ch. 3 - a. What is the role of the user interface of an...Ch. 3 - What directory structure is described by the path...Ch. 3 - Define the term process as it is used in the...Ch. 3 - Prob. 11CRPCh. 3 - What is the difference between a process that is...Ch. 3 - What is the difference between virtual memory and...Ch. 3 - Suppose a computer contained 512MB (MiB) of main...Ch. 3 - What complications could arise in a...Ch. 3 - What is the distinction between application...Ch. 3 - Prob. 17CRPCh. 3 - Summarize the booting process.Ch. 3 - Why is the booting process necessary?Ch. 3 - If you have a PC, record the sequence activities...Ch. 3 - Suppose a multiprogramming operating system...Ch. 3 - Prob. 22CRPCh. 3 - Prob. 23CRPCh. 3 - Prob. 24CRPCh. 3 - Prob. 25CRPCh. 3 - Would greater throughput be achieved by a system...Ch. 3 - Prob. 27CRPCh. 3 - What information is contained in the state of a...Ch. 3 - Identify a situation in a multiprogramming system...Ch. 3 - List in chronological order the major events that...Ch. 3 - Prob. 31CRPCh. 3 - Prob. 32CRPCh. 3 - Explain an important use for the test-and-set...Ch. 3 - Prob. 34CRPCh. 3 - Prob. 35CRPCh. 3 - Prob. 36CRPCh. 3 - Prob. 37CRPCh. 3 - Each of two robot arms is programmed to lift...Ch. 3 - Prob. 39CRPCh. 3 - Prob. 40CRPCh. 3 - Prob. 41CRPCh. 3 - Prob. 42CRPCh. 3 - Prob. 43CRPCh. 3 - Prob. 44CRPCh. 3 - Prob. 45CRPCh. 3 - Prob. 46CRPCh. 3 - Prob. 47CRPCh. 3 - Prob. 48CRPCh. 3 - Prob. 49CRPCh. 3 - Prob. 50CRPCh. 3 - Prob. 51CRPCh. 3 - Prob. 52CRPCh. 3 - How is the window manager related to the operating...Ch. 3 - Prob. 54CRPCh. 3 - Prob. 55CRPCh. 3 - Suppose you are using a multiuser operating system...Ch. 3 - Prob. 2SICh. 3 - Prob. 3SICh. 3 - Prob. 4SICh. 3 - Prob. 5SI
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
A file that contains a Flash animation uses the __________ file extension. a. .class b. .swf c. .mp3 d. .flash
Web Development and Design Foundations with HTML5 (8th Edition)
Speeding Violation Calculator Design a program that calculates and displays the number of miles per hour over t...
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Write SQL commands for the following: Create two different forms of the INSERT command to add a student with a ...
Modern Database Management
What output would be produced in Self-Test Exercise 22 if the sign were replaced with
Absolute Java (6th Edition)
Private Sub Handles btnOutput.Click
End Sub
Introduction To Programming Using Visual Basic (11th Edition)
What does a subclass inherit from its superclass?
Starting Out with Programming Logic and Design (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
- 88...Question 2: Test your program. Ensure that it runs correctly (syntax error free). Part II: Question 1: Write the program of Part 1 in 2 other..arrow_forwardFind the C program language Cornered! by CodeChum Admin Attention again soldier! Our men have been cornered by the enemy and we need to save them or else this mission will fail. The first thing we need to do is to identify them, the ones cornered by the enemy! LET'S MOVE! Instructions: Ask the user for an integer input which represents the total number of men we have in the field. Then, ask the user for the numbers of each of the men. Finally, ask the user for two numbers which represents the enemies who have cornered our men. Then, print all the numbers of our men who have been cornered by the enemy (i.e. the numbers that are in between the two numbers of the enemy).arrow_forwardOne of the benefits of computers is that they can be programmed to do a specific task. Which of the following statements is correct?arrow_forward
- Design a program that takes a string as input from the user and prints its length.7. Create a script that takes a string as input from the user and prints it reversed.8. Create a Python script that asks the user to enter two strings and then prints their concatenation.9. Create a Python program that asks the user for their age and prints out a message saying whether theyare a teenager (between 13 and 19 years old) or not.10. Design a program that prompts the user to enter a positive integer and then prints whether it is a primenumber or not.11. Design a program that calculates the factorial of a given number using a loop. Ensure the input numberis a positive integer.12. Develop a program that prompts the user for the lengths of three sides of a triangle and prints whetherthe triangle is equilateral, isosceles, or scalene.arrow_forwardCENGAGE MINDTAP ramming Exercise 2.10 Instructions employeepay.py 1 # Get the hourly rate An employee's total weekly pay equals 2 hour rate= float(input( "hourly wage:")) the hourly wage multiplied by the total 4 # Get number of hours you work regular number of regular hours, plus any 5 regular rate= float(input("total regular hours:")) overtime pay. 7 # Get the number of hours you work overtime 8 overtime rate= float(input("total overtime hours:")) Overtime pay equals the total overtime hours multiplied by 1.5 times the hourly 10 # compute total weekly pay wage. 11 totalWeekly_pay= (regular_Hours*hour_rate)+ (overtime_Hours*1.5* 12 13 #print total weekly pay 14 print("The total weekly pay is $ ", totalWeekly Pay) 15 Write a program that takes as inputs the hourly wage, total regular hours, and total overtime hours and displays an employee's total weekly pay. Below is an example of the program inputs and output: Enter the wage: $15.50 Enter the regular hours: 40 Enter the overtime…arrow_forwardForgetting a semi-colon at the end of a statement or misspelling a certain command is an example of Select one: a. compile error b. logical error c. runtime error d. computer error It is an extremely fast computer, which can execute hundreds of millions of instructions per second. Select one: a. all of the choices b. minicomputer c. supercomputer d. mainframe computer Refers to a single user computer system having moderately powerful processor. Select one: a. mainframe computer b. PC c. minicomputer d. workstationarrow_forward
- In this assignment you will write a computer program from scratch using the Python programming language. This program will function as a simple calculator. Objectives Write a simple Python program that performs arithmetic operations based on the user input Stage 1: A simple calculator Your calculator should provide the following arithmetic and control operations. Arithmetic Operations Addition (+) add(a,b) Subtraction (-) subtract(a,b) Multiplication (*) multiply(a,b) Division (/) divide(a,b) Power (^) power(a,b) Remainder (%) remainder(a,b) Control Operations Terminate (#) Reset ($) Write a function select_op(choice) to select the appropriate mathematics function based on the users selection. The behavior of the program should be as follows: The program should ask the user to specify the desired operation (addition/subtraction/multiplication/division/power/remainder/terminate/reset). You can…arrow_forwardIn this assignment you will write a computer program from scratch using the Python programming language. This program will function as a simple calculator. Objectives Write a simple Python program that performs arithmetic operations based on the user input Stage 1: A simple calculator Your calculator should provide the following arithmetic and control operations. Arithmetic Operations Addition (+) add(a,b) Subtraction (-) subtract(a,b) Multiplication (*) multiply(a,b) Division (/) divide(a,b) Power (^) power(a,b) Remainder (%) remainder(a,b) Control Operations Terminate (#) Reset ($) Write a function select_op(choice) to select the appropriate mathematics function based on the users selection. The behavior of the program should be as follows: The program should ask the user to specify the desired operation (addition/subtraction/multiplication/division/power/remainder/terminate/reset). You can…arrow_forwardIn this assignment you will write a computer program from scratch using the Python programming language. This program will function as a simple calculator. Objectives Write a simple Python program that performs arithmetic operations based on the user input Stage 1: A simple calculator Your calculator should provide the following arithmetic and control operations. Arithmetic Operations Addition (+) add(a,b) Subtraction (-) subtract(a,b) Multiplication (*) multiply(a,b) Division (/) divide(a,b) Power (^) power(a,b) Remainder (%) remainder(a,b) Control Operations Terminate (#) Reset ($) Write a function select_op(choice) to select the appropriate mathematics function based on the users selection. The behavior of the program should be as follows: The program should ask the user to specify the desired operation (addition/subtraction/multiplication/division/power/remainder/terminate/reset). You can…arrow_forward
- Programmers refer to the goal of solving a problem as the . a. input b. output c. processing d. purposearrow_forwardSelect the answer choice that most closely satisfies the inquiry.Programs in this category include word processors, spreadsheet editors, e-mail clients, and web browsers.arrow_forwardPlease make a program flowchart of this process: Start Throw the dice: the number indicated by dice is 3. Move the coin: through 3 blocks on the board. Landed on snake head?: No. Landed on the bottom of the ladder?; Yes. Move up the ladder: reached block 14 on the board. Reached the last block of the g ame?:No. Give dice to next player. Enter the loop till the last block of the game is reached. Endarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Introduction to Operators in C; Author: Neso Academy;https://www.youtube.com/watch?v=50Pb27JoUrw;License: Standard YouTube License, CC-BY