Class femtometers
{
const double FEET_TO_METERS = 0.3048;
public:
double ConvertToMeters(double feet)
{
return feet * FEET_TO_METERS;
}
};
int main()
{
double feet = 0;
femtometers converter;
do {
printf("enter a value for feet: ");
scanf_s("%lf", &feet);
double meters = converter.ConvertToMeters(feet);
printf("%lf feet is %lf meters\n", feet, meters);
} while (feet > 0.0);
return 0;
}
Workplace communication can suffer when individuals of that workplace tend to keep to them self and get aggressive
Answer:
// CPP program to Convert characters
// of a string to opposite case
#include<iostream>
using namespace std;
// Function to convert characters
// of a string to opposite case
void convertOpposite(string &str)
{
int ln = str.length();
// Conversion according to ASCII values
for (int i=0; i<ln; i++)
{
if (str[i]>='a' && str[i]<='z')
//Convert lowercase to uppercase
str[i] = str[i] - 32;
else if(str[i]>='A' && str[i]<='Z')
//Convert uppercase to lowercase
str[i] = str[i] + 32;
}
}
// Driver function
int main()
{
string str = "GeEkSfOrGeEkS";
// Calling the Function
convertOpposite(str);
cout << str;
return 0;
}
Explanation:
Answer:
B. 192.168.258.4
Explanation:
The network layer in the OSI network model introduces the IP header to the data for transmission. This IP header contains the source and destination IP addresses.
IP address is a logical address given to network devices to allow routing of data to different points in a network. There are two versions of IP addresses and they are version 4 and 6.
The IP version 4 is a 32 bit address, divided into dot notations of four octet ( eight bits). Each 8 bits is equivalent to 256 possible address spaces, that is, 2^8 is equal to 256. The address space can not exceed 256.
Example of invalid IP address is 192.168.258.4, where the third octet exceeds 256.