Answer:
To check if the year comes under each 100th year, lets check if the remainder when dividing with 100 is 0 or not.
Similarly check for 400th year and multiple 0f 4. The following C program describes the function.
#include<stdio.h>
#include<stdbool.h>
bool is_leap_year(int year);
void main()
{
int y;
bool b;
printf("Enter the year in yyyy format: e.g. 1999 \n");
scanf("%d", &y); // taking the input year in yyyy format.
b= is_leap_year(y); //calling the function and returning the output to b
if(b==true)
{
printf("Thae given year is a leap year \n");
}
else
{
printf("The given year is not a leap year \n");
}
}
bool is_leap_year(int year)
{
if(year%100==0) //every 100th year
{
if(year%400==0) //every 400th year
{
return true;
}
else
{
return false;
}
}
if(year%4==0) //is a multiple of 4
{
return true;
}
else
{
return false;
}
}
Explanation:
Output is given as image
Answer:
"I tend to struggle with __________, because _______________.
Explanation:
For exanple:
"I tend to struggle with my anger, because I grew up in a harsh enviroment."
or
"A weakness of mine would be my self image. I was often bullied as a kid."
Answer: oh hello human :) also PLEASE DONT KILL ME I’m answering this because the question was already answered already on another post
The first one is d the second one is true the third one is false
Specialized search engines indexes content specialized by topic or location and are used to deliver more relevant results to the user. It indexes pages for particular topics. Examples of specialized search engines and their applications include;
1. Uquery.com – This new search engine focuses more on the emergence of iPhone and iPod touch applications
2. Taptu.com – A downloadable search engine that helps the user find items specific to fit on a mobile screen
3. Yahooligans – A sub-domain of yahoo that focuses on kid friendly games.
4. Pubmed.com – This is specifically meant for students in medical schools
5. Zillow.com – Online real estate service that provides information regarding home purchase.