LeapYear

Download Category:

LeapYear.zip - (390.91 KB)
[
LeapYear/Debug/
LeapYear/Debug/cl.command.1.tlog
LeapYear/Debug/CL.read.1.tlog
LeapYear/Debug/CL.write.1.tlog
LeapYear/Debug/leap.obj
LeapYear/Debug/LeapYear.exe
LeapYear/Debug/LeapYear.exe.embed.manifest
LeapYear/Debug/LeapYear.exe.embed.manifest.res
LeapYear/Debug/LeapYear.exe.intermediate.manifest
LeapYear/Debug/LeapYear.ilk
LeapYear/Debug/LeapYear.lastbuildstate
LeapYear/Debug/LeapYear.log
LeapYear/Debug/LeapYear.pdb
LeapYear/Debug/LeapYear.vcxprojResolveAssemblyReference.cache
LeapYear/Debug/LeapYear.write.1.tlog
LeapYear/Debug/LeapYear_manifest.rc
LeapYear/Debug/link.3184.read.1.tlog
LeapYear/Debug/link.3184.write.1.tlog
LeapYear/Debug/link.3184-cvtres.read.1.tlog
LeapYear/Debug/link.3184-cvtres.write.1.tlog
LeapYear/Debug/link.command.1.tlog
LeapYear/Debug/link.read.1.tlog
LeapYear/Debug/link.write.1.tlog
LeapYear/Debug/link-cvtres.read.1.tlog
LeapYear/Debug/link-cvtres.write.1.tlog
LeapYear/Debug/mt.command.1.tlog
LeapYear/Debug/mt.read.1.tlog
LeapYear/Debug/mt.write.1.tlog
LeapYear/Debug/rc.command.1.tlog
LeapYear/Debug/rc.read.1.tlog
LeapYear/Debug/rc.write.1.tlog
LeapYear/Debug/vc100.idb
LeapYear/Debug/vc100.pdb
LeapYear/leap.cpp
LeapYear/LeapYear.sln
LeapYear/LeapYear.suo
LeapYear/LeapYear.vcxproj
LeapYear/LeapYear.vcxproj.filters
LeapYear/LeapYear.vcxproj.user
LeapYear/Question.txt
LeapYear/Screenshot_1.png
]

Write a program that determines whether a year is a leap year or not:
1. Take an input from a user. It has to be a positive number since it is a ‘year’, if it is not give
a
user another try and then terminate if the input is still not a positive number (remember that 0 is
neither positive nor negative).
2. Write a function isLeap that checks if a year is a leap year (algorithm for ‘leap year’ can be
found online).
3. Don’t forget to test your function.

Write a Review

Get a fresh solution of this question. Ask it now to our experts.
doubt

Ask Your Question

We have verified professionals who are ready to answer your question.

time

Save Time and Money

We choose experts who can quickly answer your question and that suit your budget.

download

Get Your Answer

Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.