Answer:
Answer explained below
Explanation:
a. A country has a capital city.------------ aggregation(city is part of country)
b. A dining philosopher uses a fork. ----------- association(philosopher and fork are different entities)
c. A file is an ordinary file or a directory file. ------- generalization( both ordinary and directory files are having attributes of files)
d. Files contain records.--------- aggregation( records are part of File)
e. A polygon is composed of an ordered set of points. ----------- aggregation( points are parts of polygon)
f. A drawing object is text, a geometrical object, or a group. --------- generalization( text and geometrical objects are drawing object)
g. A person uses a computer language on a project. -------- aggregation( person and computer language are part of project)
h. Modems and keyboards are input/output devices. -------- aggregation( Modems and keyboards both are I/O devices)
i. Classes may have several attributes.------- aggregation( attributes are part of classes)
j. A person plays for a team in a certain year. ----------- aggregation(player is part of team)
k. A route connects two cities. --------- aggregation( route consists of two cities)
l. A student takes a course from a professor. ----------- association( student and course are separate entities)
The default RDP port is 3389 but can be configured in the range of <span>49152-65538</span>
Answer:
A
Explanation:
because when you make a presentation so you are already use technology
Answer:
No but my baby brother can play with u
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.