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.
The outline of items that one must check is first to know or clarify the issue, break the issue down, etc.
<h3>What is troubleshooting?</h3>
This is known to be a step by step approach to problem handling that is often used to know and handle issues with systems etc.
Others includes:
- Set one's target in working on the issue,
- Analyze the main cause,
- Develop any form of Countermeasures.
- Then you Implement the Countermeasures made
- Monitor the Results that was given
- Go through the Process to Standardize it and tell the user that it is solved.
Conclusively, By following the steps, one can know the issue and solve it.
Learn more about troubleshoot from
brainly.com/question/14394407
Answer:
# input the number of temperatures required, which will be 10 here, but the user can print any number.
n=input("Enter the number of temperatures you want")
# create a list which can have n temperatures since it starts from 0, the maximum is n-1, and n needs to be converted to an integer.
temp= [0,int(n)-1]
#declared a variable of float type. As its 0.0 it will be a float, if 0 then integers, and so on
s=0.0
#running a for loop n times, and hence 0 to n-1.
for i in range(0, int(n)):
temp[i]=input("Enter the temperature in degree celsius in float")
s=s + float(temp[i])
i=i+1
print("The sum of the temperatures is:{0:0.1f}", +s)
Explanation:
The question from edhesive is: You need to write a program that calls for ten temperatures and then find the sum of temperatures. The temperature should be in float, which is expected. And the program is as being mentioned in the answer section.
On a rheostat the first terminal is connected to a
A ground return path
fined contact
Ceramic heat sink
Bbbbncnennanxkcndkfnrnenwn77819’cjchopeithlps they
Answer:
A. 0
Explanation:
The technician should configure the RAID 0 for Joe.
RAID 0 also referred to as the striped volume or stripe set is configured to allow the fastest speed and the most storage capacity by splitting data evenly across multiple (at least two) disks, without redundancy and parity information.
Also, RAID 0 isn't fault tolerant, as failure of one drive will cause the entire array to fail thereby causing total data loss.