Starting Out With C++: Early Objects (10th Edition)
Starting Out With C++: Early Objects (10th Edition)
10th Edition
ISBN: 9780135235003
Author: Tony Gaddis, Judy Walters, Godfrey Muganda
Publisher: PEARSON
bartleby

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 1.5, Problem 1.24CP

Explanation of Solution

Primary activities of a program:

The three primary activities of a program are as follows:

  • Input
  • Processing
  • Output

Input:

The information that is collected from the outside world is called as input. Input can be sent to a computer using input devices such as keyboard or mouse.

Example:

The input is gathered from the user in a program using a "cin" statement is as shown below:

// variable declaration

float temperature;

// get input from the user using a keyboard

cin >> temperature;

In the above snippet, the variable "temperature" is declared as a float and the input is gotten from the user by using "cin" statement.

Processing:

The information that is gathered from the outside world needs to be processed in some manner to obtain a new resultant value.

  • The input gathered from the user needs to be manipulated in some way such as performing arithmetic or logic operations.

Example:

The input gathered from the outside world using "cin" statement will be processed by manipulating the given input variables to obtain a desired resultant value as shown below:

//process that converts the given temperature in Fahrenheit

fahrenheit = (temperature * 9...

Blurred answer
Students have asked these similar questions
You are tasked with developing a portable system that can be worn to collect health and fitness data. The challenge is to integrate all functions into the smaller form of an ear clip. The device should include heart rate, movement and temperature sensor and wireless communication with a mobile app. Draw a diagram- hardware architecture of the system- including the selection of suitable sensors, communication modules, and an energy-efficient microcontroller. (visualize the components and their connections)
Draw out an example of 3 systems using Lamport’s logical clock and explain the steps in words.
"Systems have become very powerful and sophisticated, providing quality information fordecisions that enable the firm to coordinate both internally and externally."With reference to the above statement compare the operations of any three data gatheringsystems today’s organisations use to aid decision making.

Chapter 1 Solutions

Starting Out With C++: Early Objects (10th Edition)

Chapter 1.3, Problem 1.11CP Chapter 1.3, Problem 1.12CP Chapter 1.3, Problem 1.13CP Chapter 1.3, Problem 1.14CP Chapter 1.3, Problem 1.15CP Chapter 1.3, Problem 1.16CP Chapter 1.3, Problem 1.17CP Chapter 1.5, Problem 1.18CP Chapter 1.5, Problem 1.19CP Chapter 1.5, Problem 1.20CP Chapter 1.5, Problem 1.21CP Chapter 1.5, Problem 1.22CP Chapter 1.5, Problem 1.23CP Chapter 1.5, Problem 1.24CP Chapter 1.6, Problem 1.25CP Chapter 1.6, Problem 1.26CP Chapter 1.6, Problem 1.27CP Chapter 1.6, Problem 1.28CP Chapter 1.6, Problem 1.29CP Chapter 1.6, Problem 1.30CP Chapter 1.6, Problem 1.31CP Chapter 1.6, Problem 1.32CP Chapter 1.6, Problem 1.33CP Chapter 1, Problem 1RQE Chapter 1, Problem 2RQE Chapter 1, Problem 3RQE Chapter 1, Problem 4RQE Chapter 1, Problem 5RQE Chapter 1, Problem 6RQE Chapter 1, Problem 7RQE Chapter 1, Problem 8RQE Chapter 1, Problem 9RQE Chapter 1, Problem 10RQE Chapter 1, Problem 11RQE Chapter 1, Problem 12RQE Chapter 1, Problem 13RQE Chapter 1, Problem 14RQE Chapter 1, Problem 15RQE Chapter 1, Problem 16RQE Chapter 1, Problem 17RQE Chapter 1, Problem 18RQE Chapter 1, Problem 19RQE Chapter 1, Problem 20RQE Chapter 1, Problem 21RQE Chapter 1, Problem 22RQE Chapter 1, Problem 23RQE Chapter 1, Problem 24RQE Chapter 1, Problem 28RQE Chapter 1, Problem 29RQE Chapter 1, Problem 30RQE Chapter 1, Problem 31RQE Chapter 1, Problem 33RQE Chapter 1, Problem 34RQE Chapter 1, Problem 35RQE Chapter 1, Problem 37RQE Chapter 1, Problem 38RQE Chapter 1, Problem 1PC Chapter 1, Problem 2PC Chapter 1, Problem 3PC
Knowledge Booster
Background pattern image
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
    SEE MORE QUESTIONS
    Recommended textbooks for you
    Text book image
    Principles of Information Systems (MindTap Course...
    Computer Science
    ISBN:9781285867168
    Author:Ralph Stair, George Reynolds
    Publisher:Cengage Learning
    Text book image
    C++ for Engineers and Scientists
    Computer Science
    ISBN:9781133187844
    Author:Bronson, Gary J.
    Publisher:Course Technology Ptr
    Text book image
    Programming Logic & Design Comprehensive
    Computer Science
    ISBN:9781337669405
    Author:FARRELL
    Publisher:Cengage
    Text book image
    Fundamentals of Information Systems
    Computer Science
    ISBN:9781337097536
    Author:Ralph Stair, George Reynolds
    Publisher:Cengage Learning
    Text book image
    COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
    Computer Science
    ISBN:9780357392676
    Author:FREUND, Steven
    Publisher:CENGAGE L
    Text book image
    Fundamentals of Information Systems
    Computer Science
    ISBN:9781305082168
    Author:Ralph Stair, George Reynolds
    Publisher:Cengage Learning