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:False
Explanation: Attorney-client previlege is a rule that protects the confidentiality of the communication between the clients and the lawyer(attorney). This rule is put in place to encourage clients to communicate freely and give out adequate and necessary information in order for the Attorney to effectively handle the case. ANY DATA COLLECTED BEFORE THE ATTORNEY ISSUES A MEMO FOR AN ATTORNEY-CLIENT PRIVILEGE CASE IS NOT PROTECTED UNDER THE CONFIDENTIAL WORK PRODUCT RULE WHICH GUARANTEES THAT NO INFORMATION AFTER THAT MEMO SHALL BE DIVULGED WITHOUT APPROPRIATE CONSIDERATIONS.
Answer:
Your program is correct.
Explanation:
<u>You have this requeriments:</u>
- James doesn't want to sit next to Jill.
- Betty and Herb are dating and want to sit next to each other.
- Bob must sit on an aisle.
- Aisle on either end.
<u>Your answer:</u>
public class Seating{
public static void main (String [] args)
{ String James;
String Jill;
String Betty;
String Herb;
String Bob;
system.output.println(Bob + "," + Jill + "," + Herb + "," + Betty + "," + James + "."; } <em>//Bob is an aisle. James is not sit next to Jill. Betty and Herb are sit together.</em>
}