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++ from Control Structures to Objects (8th Edition)
- Describe the steps that go into the program's analysis phase.arrow_forwardAssignment Instructions: As a software development team, you should agree on the type of software development project you wish to accomplish. Each team can select a software project of any domain and of any type. In this task every team should write: 1- A description of the software project that they want to establish (1 page). 2- A Problem Statement that explains the problem which the project will study or solve (1 page). Deliverables: - Two pages saved in an MS-Word.arrow_forwardIn software development, what are the four most important things that happen?arrow_forward
- Explain the concept of a programming paradigm and how it influences software development.arrow_forwardList the properties of task environmentsarrow_forwardExplain what it means to be technically documented. Important contrasts between Technical and User Documentation include the following:arrow_forward
- Describe the steps required in the analysis phase of programming.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 the concept of design patterns in software development and provide examples of commonly used design patterns.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