×
Log in to StudySoup
Get Full Access to C++ For Everyone - 2 Edition - Chapter 2 - Problem R2.19
Join StudySoup for FREE
Get Full Access to C++ For Everyone - 2 Edition - Chapter 2 - Problem R2.19

Already have an account? Login here
×
Reset your password

Run the following program, and explain the output you get.#include <iostream>using

C++ for Everyone | 2nd Edition | ISBN: 9780470927137 | Authors: Cay S. Horstmann ISBN: 9780470927137 356

Solution for problem R2.19 Chapter 2

C++ for Everyone | 2nd Edition

  • Textbook Solutions
  • 2901 Step-by-step solutions solved by professors and subject experts
  • Get 24/7 help from StudySoup virtual teaching assistants
C++ for Everyone | 2nd Edition | ISBN: 9780470927137 | Authors: Cay S. Horstmann

C++ for Everyone | 2nd Edition

4 5 1 300 Reviews
14
4
Problem R2.19

Run the following program, and explain the output you get.#include using namespace std;int main(){ int total; cout << "Please enter a number: "; double x1; cin >> x1; total = total + x1; cout << "total: " << total << endl; cout << "Please enter a number: "; double x2; cin >> x2; total = total + x2; cout << "total: " << total << endl; total = total / 2; cout << "total: " << total << endl; cout << "The average is " << total << endl; return 0;}Note the trace messages (in blue) that are inserted to show the current contents ofthe total variable. How do you fix the program? (The program has two separateerrors.)

Step-by-Step Solution:
Step 1 of 3

IT 100­ Week 12 11/8­ Digital Safety and Security Exam 3 A. Security Tools a. Personal Firewall­ security tool that detects and protects personal computers from unauthorized intrusions. b. Antivirus Program­ protects a computer against viruses by identifying and removing computer viruses found in memory, on storage media, or on incoming files. c. Spyware remover­ program that detects and deletes spyware and similar programs. d. Adware remover­ program that detects and deletes adware. e. Antivirus­ keeps older viruses from attacking computers. f. Antimalware­ keeps up on newer viruses that could attack. g. Other security tools i. Internet filters ii. Anti­spam programs iii. Web filters iv. Phishing filters v. Pop­up blockers B. Internet and Network Attacks a. Firewall­ hardware and/or software that protects a network’s resources from intrusion. C. Unauthorized Access and Use­ a. Unauthorized access­ use of a computer or network without permission. i. Example­ a teacher leaves their office and doesn’t log off their email or computer, and a student sees the open account and uses it to send emails. b. Unauthorized use­ the use of a computer or its data for unapproved or possibly illegal activities. i. Example­ students sell the pr

Step 2 of 3

Chapter 2, Problem R2.19 is Solved
Step 3 of 3

Textbook: C++ for Everyone
Edition: 2
Author: Cay S. Horstmann
ISBN: 9780470927137

Other solutions

Discover and learn what students are asking








Statistics: Informed Decisions Using Data : Measures of Position and Outliers
?When outliers are discovered, should they always be removed from the data set before further analysis?





People also purchased

Related chapters

Unlock Textbook Solution

Enter your email below to unlock your verified solution to:

Run the following program, and explain the output you get.#include <iostream>using