Answer:
The computer that responds to requests from the client computer:
Server
Connects network devices or different parts of a network:
Switch
A piece of equipment that directs data where it should go:
Router
Connects many different Ethernet devices and allows them to connect to the network with one connection:
Hub
The computer that uses service provided by a server:
Client
Explanation:
Answer:
#include <iostream>
#include <array>
using namespace std;
bool isPalindrome(string str)
{
int length = str.length();
for (int i = 0; i < length / 2; i++)
if (toupper(str[i]) != toupper(str[length - 1 - i]))
return false;
return true;
}
int main()
{
array<string, 6> tests = { "madam", "abba", "22", "67876", "444244", "trymEuemYRT" };
for (auto test : tests) {
cout << test << " is " << (isPalindrome(test) ? "" : "NOT ") << "a palindrome.\n";
}
}
Explanation:
The toupper() addition forces characters to uppercase, thereby making the comparison case insensitive.
Answer: The function Stella can use to calculate the periodic payments of a loan is:
The Excel PMT function or NPER function.
Explanation: 1. The Excel PMT function is a financial function that returns the periodic payment for a loan.
2. The NPER function to figure out payments for a loan, given the loan amount, number of periods, and interest rate.