Concept explainers
Explanation of Solution
Primary activities of a
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...
Want to see the full answer?
Check out a sample textbook solutionChapter 1 Solutions
Starting Out With C++: Early Objects (10th Edition)
- Explain the concept of a programming paradigm and how it influences software development.arrow_forwardProgram Design Method system app theme to work on : Hospital inpatient system application. Your task is:Make a model of 2 activity diagrams shows the activities that are in the process and the relationships between these activities.arrow_forwardExplain what it means to be technically documented. Important contrasts between Technical and User Documentation include the following:arrow_forward
- Explain the concept of a design pattern in software development and provide examples of widely-used design patterns.arrow_forwardWhat is the purpose of a computer program, and how may this be clarified?arrow_forwardcomputer science -Describe the project manager's, sponsor's, business analyst's, and programme manager's duties for the project you chose as a good fit for waterfall.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education