Answer:
# include <iostream>
#include<stdio.h>
using namespace std;
bool IsLeapYear(int y)
int main()
{
int y;
cout<<"Enter the Year to check Leap or Not"<<endl;
cin>>y;
IsLeapYear(int y);
getch();
}
bool IsLeapYear(int y)
{
if (y%4==0)
{
if (y%100==0)
{
if (y%400==0 )
{
cout<"The year is leap Year";
}
else
{
cout<<" The year is not Leap Year";
}
}
else
{
cout<<"The year is Leap Year" ;
}
}
else
{
cout<<"The year is not Leap Year";
}
}
Explanation:
In this program a function has been defined named as IfLeapYear, to check that whether the entered year is leap year or not. An year taken as integer data type named as y to enter the year to check. If the year is divisible by 4 but not divisible by 100 is the leap year. If the year is divisible by 4, divisible by 100 and also divisible by 400 is the century year and is also the leap year.
To check all the statements, Nested if-else conditions has been used to check multiple requirements of the leap year.
Answer:
There needs to be an odd number of 1 bits
Explanation:
In memory, parity checking method is used to test the memory. There are two parity conditions. Either the parity is even or the parity is odd.
Odd parity means, number of 1's in eight bits of data. If the number 1's are odd it means parity is odd. In case of the memory testing result the parity should be odd.
So, In case of Parity of RAM, the parity should be odd, if the data is stored in the RAM.
An Average of 10 times faster.
Hope this helps!
Answer:
For maximum interoperability, NFSv4 is recommended.
Explanation:
When setting up a network of mostly windows machines, it is better to use NFSv4 because it includes performance improvements, mandates strong security, and a stateful protocol.
The answer & explanation for this question is given in the attachment below.