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 (9th Edition)
- Program 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_forwardWhat characteristics define an issue as one that has an effect on the behavior of a program?arrow_forward
- Explain the concept of a design pattern in software development and provide examples of widely-used design patterns.arrow_forwardWhat marks an issue as having an impact on program behavior?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
- 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_forwardProblem Statement: A famous product photographer Xavier is in high demand and is being approached by various companies to get their products photographed. Xavier does all of this product shoots at his studio and wants to make sure that he maximizes his returns by covering as many photoshoots in a day as possible. For a product shoot to be conducted, the product first has to be staged and then photographed. He has a team who stages the products and he does the photoshoots. Depending on the product, it takes different amounts of time to stage and varied time to complete the shoot. His team can stage another product in another part of the studio while Xavier is busy with a photoshoot of a previously staged product. Assuming that his team can work on only one product at a time before they move to staging another and Xavier also finishes one product photoshoot before moving to the next, you are expected to help Xavier make best use of his team and his time by deciding the order in which the…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_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