Answer:
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double num1, num2, num3, num4, num5, sum = 0;
cout << "Input: ";
cin >> num1 >> num2 >> num3 >> num4 >> num5;
sum = num1 + num2 + num3 + num4 + num5;
cout << "Output: " << static_cast<int>(round(sum)) << endl;
return 0;
}
Explanation:
Include cmath to use the round function
Declare the variables
Get the five numbers from the user
Sum them and assign the result to the sum
Round the sum using the round function, and convert the sum to an integer using static_cast statement
Print the sum
Answer:
A LAN (local area network) is a group of computers and network devices connected together, usually within the same building. ... A WAN connects several LANs, and may be limited to an enterprise (a corporation or an organization) or accessible to the public. The technology is high speed and relatively expensive.
LAN stands for Local Area Network. WLAN stands for Wireless Local Area Network. ... WLAN connections are completely wireless. LAN network is a collection of computers or other such network devices in a particular location that are connected together by communication elements or network elements.
Easy and Cheap Communication: Data and messages can easily be shared with the other computer connected to the network. Centralized Data: The data of all network users can be stored on a hard disk of the central/server computer. This help users to use any computer in a network to access the required data.
Explanation:
<em>I </em><em>don't</em><em> know</em><em> if</em><em> </em><em>it's</em><em> </em><em>correct</em><em>,</em>
<em>so </em><em>hope </em><em>it </em><em>helps</em>
Answer:
#include <iostream>
const double PI = 3.14159;
int main() {
double diameter;
std::cout << "Please enter the diameter of the circle:" << std::endl;
std::cin >> diameter;
double radius = diameter / 2;
double area = radius * radius * PI;
double circumference = 2 * radius * PI; // or diameter * PI;
std::cout << "Area: " << area << std::endl;
std::cout << "Circumference: " << circumference << std::endl;
}
Explanation:
The first line imports the read/write library. The rest should be self-explanatory.
std::cin is the input stream - we use it to get the diameter
std::cout is the output stream - we write the answers (and commentary) there.
std::endl is the special "character" informing the output stream that we want it to put a newline character (and actually print to the output - it might have been holding off on it).
the // in the circumference computation signifies a comment - the program simply ignores this. I've added it to tell the reader that the circumference could have been computed using the diameter,
<u>Answer:</u>
(a) page = 3; offset = 13
(b) page = 41; offset = 111
(c) page = 210; offset = 161
(d) page = 634; offset = 784
(e) page = 1953; offset = 129