Find whether the year entered from the keyboard

Assignment Help Computer Engineering
Reference no: EM1331200

Write a C program to determine whether the year entered from the keyboard is a leap year. Display a message indicating whether the year is or is not a leap year.

To calculate this problem, a year is a leap year if it is evenly divisible by 4 and not by 100, or if it is evenly divisible by 400. Check the remainder of the division statements by using the % function. (Hint: It may help to have three variables, each one holding the remainder of each of the division problems.)

(To check your work, legal leap years are 1952, 1964, 1988, and 2004. Years 1953, 1966, 1990, and 2007 are not leap years.)

Reference no: EM1331200

Questions Cloud

Case study on legal issue : Identification and description of the legal issue. Identification and description of the legal rule.
Suppose that the user will enter only a single digit : suppose that the user will enter only a single digit. Write down C program to display in words what number is entered when a single digit is entered.
Explain ebusiness legal and ethical social issues : Discuss organizational ethical processes as well as regulatory and legal rulings that might affect consumer trust when using an e-Business website.
Formal power structure cross-functional team effectiveness : How does the formal power structure help (or hinder) cross-functional team effectiveness? Explain.
Find whether the year entered from the keyboard : create a C program to determine whether the year entered from the keyboard is a leap year. Display a message indicating whether the year is or is not a leap year.
Who are the stakeholders : Find Who are the stakeholders when small businesses succeed and who loses out when they fail?
Local person considered to have experience in international : You are to be part of a panel of three local person considered to have experience in international business.
Employers of a person-focused pay program : Examine the advantages to employees and to employers of a person-focused pay program to determine if this would be a good approach for all companies and organizations in the U.S. to pursue. Explain your rationale.
Obscene publications act 1959 : Advise the museum as to whether the vase might be considered in law to be obscene and, if so, whether they can rely on the defence contained in s.4 of the Obscene Publications Act 1959.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Make a class named student

design a class named ShowStudent that instantiates a Student object from th eclass and then display all the vlaues associated with the Student. Save as ShowStudent.java

  How java programming knowledge benefits nonprogramming

How does information of programming concepts benefits individuals working in almost any IT position? Include at least one specific example of how java programming knowledge benefits nonprogramming working in IT?

  Program on different statements

Program on different statements

  The advantages and disadvantages of using functions

Show how you might write the "case" statement using only the "if" statement in its place an actual case statement. Hint: Nested if statements. Explain your code.

  Pros and cons of re-usability for the paradigms

Re-usability is the ability to use code written for another situation. Most languages and programming paradigms support re-usability in some form. make a report about re-usability in the procedural and object oriented languages.

  How to modify the payroll program application

Modify the Payroll Program application and it continues to request employee information until the user enters stop as the employee name.

  Explain the concept of scalability to the team

The project leader wants you to explain the concept of scalability to team. How would you do that? Several managers on the team have heard of TCO but are not quite sure what it is. How would you explain it to them.

  Point-to-point communication links

Suppose there is the wide-area network with N nodes, where N ≥ 2. Find out the smallest number of the point-to-point communication links such that each node within the network is able to talk to one another node?

  Recoginizing the error in given code

Identify the problem in the above code, If ( toupper( response[ 0 ] ) == 'Y' )

  Routers concept

Suppose a BGPv4 router receives an update for the prefix P which indicates AS1 as the next hop (and router has never seen P before).

  Listing the values that have been inserted

Write down a Java program that loads 12 random integers with the values between 1 and 100 into a tree. Apart from building the tree.

  Choose three or more types of testing

Write down the discussion as if you are the systems analyst briefing your CIO as the two of you are walking over to the steering committee meeting in which a "go/no go" decision will be made whether to go live with your new enterprise system (this..

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