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
<span>A chipset which forms an interface between the CPU's front-side bus, main memory, and peripheral buses. Non-volatile memory chips (usually Flash ROM in modern motherboards) containing the system's firmware or BIOS. A clock generator which produces the system clock signal to synchronize the various components.</span>
Answer:
=(A4+B4+C4+D4+E4)/5
Explanation:
If we want to have the average of the passengers, first we must sum all the revenue and then divide it with passenger quantity.
In this particular example, I made the formula with 5 passengers, I sum the 5 revenues and then I divide with 5 passengers if there are more passengers we must sum all of them, and divided all of them, for example:
=(A4+B4+C4+D4+E4+F4)/6
Answer:
Yes I do honestly : )
What about you ??
Explanation:
Hope this helped : )
Since I was the first one may i have brainiest : )
Answer:
Not sure what language, but in python a super basic version would be:
val1 = 98
val2 = 87
val3 = 84
val4 = 100
val5 = 94
sum = val1 + val2 + val3 + val4 + val5
avg = sum / 5
print(avg)
Explanation: