Answer:
360/number of sides
Explanation:
all the exterior angles add up to 360°
so to find each angle mesure, divide the 360 by the number of sides the figure has.
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 major characteristics of computers are the following:
Speed : A powerful computer is capable of executing about 3 million calculations per second.
Accuracy : A computer's accuracy is consistently high; if there are errors, they are due to errors in instructions given by the programmer.
Reliability : The output generated by the computer is very reliable as long as the data is reliable.
Memory/Storage Capacity : The computer can store large volumes of data and makes the retrieval of data an easy task.
Versatility: The computer can accomplish many different things. It can accept information through various input-output devices, perform arithmetic and logic operations, generate a variety of outputs in a variety of forms, etc.
Automation: Once the instructions are fed into computer it works automatically without any human intervention.
Diligence: A computer will never fail to perform its task due to distraction or laziness.
Convenience: Computers are usually easy to access, and allow people to find information easily that without a computer would be very difficult.
Flexibility: Computers can be used for entertainment, for business, by people who hold different ideals or who have varied goals. Almost anyone can use a computer, and computers can be used to assist with almost any goal.
<em>I hope it helps you!!!!</em>
Answer:
By having very good luck and winning it in a giveaway!!!