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.
Using the mouse to move or copy cells is called drag and drop
Answer and Explanation:
Some of the advantages of using the F measure (weighted harmonic mean) over using the Precision & Recall when evaluating an IR system performance are as follows-
- Precision quantifies the number of positive class predictions that actually belong to the positive class.
- Recall quantifies the number of positive class predictions made out of all positive examples in the dataset.
- F-Measure provides a single score that balances both the concerns of precision and recall in one number.
- A measure that combines precision and recall is the harmonic mean of precision and recall, the traditional F-measure or balanced F-score:
F=2((precision.recall)/(precision+recall))
This website has an article about the on-board diagnostics system (OBD system) which turns on the Check Engine light in a motorized vehicle: https://motorist.org/articles/check-engine-light
Hope it helps you!
Answer:
#include <stdio.h>
int main()
{
float afTest1[5] = {90, 30, 25, 45, 55};
for (int i = 0; i < 5; i++) {
printf("%f ", afTest1[i]);
}
return 0;
}
Explanation:
Initialize the elements of the array as 90, 30, 25, 45, 55
Create a for loop that iterates through the array
Inside the loop, print each element using printf function