HDLC is a synchronous Data Link layer bit-oriented protocol developed by the International Organization for Standardization (ISO).
Answer:
import java.util.Scanner;
public class LabProgram {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
int inputYear;
boolean isLeapYear;
isLeapYear = false;
inputYear = scnr.nextInt();
// If a year is divisible by 400, then it is a leap year
if (inputYear % 400 == 0)
isLeapYear = true;
// If a year is divisible by 100, then it is not a leap year
if (inputYear % 100 == 0)
isLeapYear = false;
// If a year is divisible by 4, then it is a leap year
if (inputYear % 4 == 0)
isLeapYear = true;
if(isLeapYear)
System.out.println(inputYear + " is a leap year.");
else
System.out.println(inputYear + " is not a leap year.");
}
}
Explanation:
- Take the year as an input from user and store it to inputYear variable.
- If the year is a century year, check if the year is divisible by 400 ( the year must be evenly divisible by 400 ), then set the boolean isLeapYear to true. If a year is divisible by 100, then set the boolean isLeapYear to false. If a year is divisible by 4, then set the boolean isLeapYear to true.
- Check if isLeapYear is true, then print that it is a leap year. Otherwise, print that it is not a leap year.
Output:
1712
1712 is a leap year.
Wedding photographer
you are taking pictures of large groups of all kinds of people from 2 different sides of a family
could you add me as best answer if this is correct?
Answer:
Savings, Investments
Certificate of deposit Mutual fund
Account Money Market
Gold
Explanation:
Savings is the term used to describe the proportion of ones income not spent or kept for spending at a much later date;
Saving methods includes saving money in deposit accounts, pension savings, and cash savings as well as reducing expenditures
Savings differs from investment in the sense that investments involves more risks than savings
Mutual fund
Mutual fund is a financial resource type involving the bringing together of funds gathered from several investors for investment
Money market
The money market involves buying and selling debt investments that are short terms
Gold
Gold investment is a way of diversifying risk through futures and derivatives and futures contracts
Certificate Deposit
Certificate deposit is a fixed term deposit form of savings that provides an interest on the deposit
Account
Savings and current account are meant for saving funds