Answer:
// program in C++ to check leap year.
// include header
#include<iostream>
using namespace std;
// main function
int main() {
// variable
int inp_year ;
// ask user to enter year
cout<<"Enter year:";
// read year
cin>>inp_year;
// check year is leap or not
if (((inp_year % 4 == 0) && (inp_year % 100 != 0)) || (inp_year % 400 == 0))
// if leap year , print leap year
cout<<inp_year<<" is a leap year.";
else
// print not leap year
cout<<inp_year<<" is not a leap year.";
return 0;
}
Explanation:
Read year from user.Then check if year is divisible by 4 and not divisible by 100 or year is divisible by 400 then year is leap year.otherwise year is not leap year.
Output:
Enter year:1712
1712 is a leap year.
Answer:
Check the explanation
Explanation:
public String replace(String sentence){
if(sentence.isEmpty()) return sentence;
if(sentence.charAt(0) == ' ')
return '*' + replace(sentence.substring(1,sentence.length()));
else
return sentence.charAt(0) + replace(sentence.substring(1,sentence.length()));
Answer:
consistent phrasing is missing
Explanation:
If you will note carefully, the bullets are not in correct format. The model is missing. The correct one is as below.
Risks
The correct form of presentation is as below:
1. Risks
a. employees
a. physical illness
b. mental illness
c. death
2. Customers
a. complaints
b. downtime
3. Benefits
However, the content seems to be complete now, and hence not anything else is required. And since its not something very tough to decide to go with, bite the bullet is certainly not an issue.