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 W/C++,...(LL)-W/ACCESS
- 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 procedures used throughout the program's analysis phase.arrow_forwardWhen developing a system, there are usually many separate stages, each with its own specific goal.arrow_forwardExplain the concept of a design pattern in software development and provide examples of widely-used design patterns.arrow_forward
- What 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_forwardComputer science Describes the many forms of requirements that may be specified for a computer-based system.arrow_forward
- Software development utilizes a large variety of models, each with varying importance depending on the application. Each model may be classified according to your preferences.arrow_forwardObject orentied Programming Sports World is an Events Management Company that organizes the running of major sporting games, such as the Olympic Games. Before being used to host a sporting event, venues are assessed by an Administrator who checks that they are fit for purpose. If the venue can hold more than 10,000 people, the Administrator conducts additional health and safety checks to ensure that the venue is safe. A year before the games begin, a Team of Staff is appointed to run the day-to-day operations, including booking successfully assessed/safety-checked venues. Six months before the games begin, the Team of Staff produce a Program that lists the date, time and location of each sporting event. At this point, Athletes can register for an event by giving their name, address, date of birth and best time for their event. Some overseas athletes need to apply for a visa and the system needs to record whether they were successful. A week before the games begin, a Team of Staff…arrow_forwardDuring the analysis phase of software development, there are a wide variety of design models used.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