Cis406 java programming i

Assignment Help Business Management
Reference no: EM132238659

Strayer University

CIS406 - Java Programming I

7.13 LAB: Leap year - methods

A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To account for the difference in time, every 4 years, a leap year takes place. A leap year is when a year has 366 days: An extra day, February 29th. The requirements for a given year to be a leap year are:

1) The year must be divisible by 4

2) If the year is a century year (1700, 1800, etc.), the year must be evenly divisible by 400

Some example leap years are 1600, 1712, and 2016.

Write a program that takes in a year and determines whether that year is a leap year.

Ex: If the input is 1712, the output is:

1712 is a leap year.

Ex: If the input is 1913, the output is:

1913 is not a leap year.

Your program must define and call the following method. The method should return true if the input year is a leap year and false otherwise.

public static boolean IsLeapYear(int userYear)

Note: This is a lab from a previous chapter that now requires the use of a method.

Reference no: EM132238659

Questions Cloud

Is this a realistic number to allow the business to survive : What would be the total number of customers based on his assumptions? Is this a realistic number to allow the business to survive?
Create stakeholder register using key players identified : Using the STAKEHOLDER_REGISTER form, create a stakeholder register using the key players identified in the case.
What are the common tools used for dos : Answer the following question about a page. What are the common tools used for DoS?
Discuss reasons why it is important to plan : Discuss reasons why it is important to plan in advance of starting an EHR vendor selection process?
Cis406 java programming i : A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To account for the difference in time
What important factors would you want your program to do : Merit pay is often referred as pay for performance and is the most widely-used method organizations use to determine employee pay increases.
Difference between a physical and virtual entity : What is the difference between a physical and virtual entity?
Write a function that meets these requirements : An palindrome is a word that's the same when you reverse the letters.
How are the measures used in the performance scorecard : How are the measures used in the performance scorecard at Citibank linked to business strategy implementation? What should Lisa Johnson and Frits Seegers.

Reviews

Write a Review

Business Management Questions & Answers

  Explain method of economically making diamonds from coal

General Electric has developed a method of economically making diamonds from coal. You know that you can't win a battle of financial capital with GE and that their stones are all flawless and perfect in every way.

  Freeman-brown private school case study

Refer to the "Freeman-Brown Private School Case Study" document for details pertaining to this assignment. The board of directors at FBPS has hired you as part of a consulting team to review the situation and present your findings and recommendatio..

  Percentage of income is spent on lottery tickets

According to the news on page 82, what percentage of income is spent on lottery tickets by

  Creating a sales forecast snapshot

Would you expect that the sales budget may reflect different volumes and prices than was forecasted in the sales forecast?  What would be be doing differently during the sales budget process than while creating a sales forecast snapshot?

  Enterprise it strategies include outsourced cloud-based

Enterprise IT strategies include outsourced cloud-based solutions. Provide some examples of why companies choose to outsource and utilize cloud-based systems

  Assigned readings and personal knowledge

Please answer all of these questions based on the assigned readings and or your personal knowledge.

  Annual report from a chemical company

Obtain an annual report from a chemical company (e.g. DuPont, Eastman Kodak, Dow Chemical, Monsanto, Pfizer, etc.), or visit a company's public website where they discuss sustainability and pollution prevention programs. These annual reports can o..

  Strategic controls and financial controls of two companies

Explain the strategic controls and financial controls of two companies trying to enter into a venture. In what way do these controls involve both companies?

  What is charismatic leadership

What is charismatic leadership? Explain what is meant by the statement that charismatic leaders use active impression management with their followers to support

  Select a healthcare organization local or national large or

select a healthcare organization local or national large or small public or private and perform a needs assessmentgap

  Levels of conflict amp how to reduce conflictdescribe the

levels of conflict amp how to reduce conflictdescribe the levels of conflict that may be present when individuals

  Analysis on management consulting notebook computers

analysis on management consulting notebook computers predictionexperts predict that notebook computers soon will have

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd