d. A common Gregorian year has 364 days and 6 hours. A leap year is a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
d. A common Gregorian year has 364 days and 6 hours. A leap year is a year that is either: 1 multiple of 400 2 or it is a multiple of 4 but not a multiple of 100. A leap Gregorian year has 365 days; one day is added to the month of February which will have 29 days. Write a program to check whether a year entered by a user is leap or not. Example of leap years: 2000, 2004, 2008, 2012, 2016, 2020. Example of common years (not leap): 1900 (divisible by 4 and by 100). d. A common Gregorian year has 364 days and 6 hours. A leap year is a year that is either: 1 multiple of 400 2 or it is a multiple of 4 but not a multiple of 100. A leap Gregorian year has 365 days; one day is added to the month of February which will have 29 days. Write a program to check whether a year entered by a user is leap or not. Example of leap years: 2000, 2004, 2008, 2012, 2016, 2020. Example of common years (not leap): 1900 (divisible by 4 and by 100).
Expert Answer:
Answer rating: 100% (QA)
Answer include using namespace std int main int year cout year year entered by user ifyear40 y... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these electrical engineering questions
-
Write a program to check whether a string entered is a palindrome. A string is a palindrome if it reads the same forward and backward. The words mom, dad, noon for instance are palindromes. (include...
-
Write a program to check whether a string entered is a palindrome. A string is a palindrome if it reads the same forward and backward. The words mom, dad, noon for instance are palindromes. (include...
-
Divisible by 4 or divisible by 7 In a lottery game, a single ball is drawn at random from a container contains 25 identical balls numbered from 1 through 25. In problem, use equation (1) or (2),...
-
Let a = (4, 5) and 6 = (-4,-2). Find the projection of b onto a. proj; b = =V
-
Refer to Problem 10.5. Compute the IRR for both production system 1 and production system 2. Which has the higher IRR? Which production system has the higher NPV? Explain why the IRR and NPV rankings...
-
What is the difference between a firms gross profit margin, operating profit margin, and net profit margin?
-
Barbara Whitley had great expectations about her future as she sat at her graduation ceremony in May 2000. She was about to receive her Masters of Accountancy degree, and the following week she would...
-
Central Station Fund. The Town of Elizabeth operates the old train station as an enterprise fund. The train station is on the national register of historic buildings. Since the town has held the...
-
Exercise 9-9A (Algo) Comprehensive analysis LO 9-2, 9-3 The December 31, Year 4, balance sheet for Zachary Corporation is presented here. These are the only accounts on Zachary's balance sheet....
-
1. Bare cost and total cost (incl. O&P) of formwork for spread footings (20 pts, specify which lines (or index) in RSMeans data are used) 2. Bare cost and total cost of reinforcement for spread...
-
3) Corporation C has a debt-equity ratio of [29/10]. The firm's weighted average cost of capital is 23.5% and its pretax cost of debt is 10.5% The tax rate is 46%. What is the company's levered cost...
-
Zachary Corporation paid one of its sales representatives $8,500 during the month of March. The rep is paid a base salary plus $14 per unit of product sold. During March, the rep sold 170 units....
-
Fig. P8.1 10 ft D IP 8.1 A W10 x 39 rolled-steel beam supports a load P as shown. Knowing that P = 45 kips, a = 10 in., and 6 = 18 ksi, determine (a) the maximum value of the normal stress 6, in the...
-
Key comparative figures for Apple and Google follow. $ millions Net sales Cost of sales 161,782 163,756 Apple Google Current Year Prior Year Current Year Prior Year $ 260,174 $ 265,595 $ 161,857 $...
-
Find Etotal @ point P O 8 = +4nC 6cm O (Ans: ~80,000 N/C) q = = -4nC
-
Is developmental psychololgy a form of forensic psychology? If so how are they related? Were you surprised that this was a career in forensic psychology?
-
Social Facilitation and Social Loafing Have you done group projects in the past in your classes? Now that you know about social facilitation and social loafing, would you say that these group...
-
Interview managers at three companies in your area about their use of ERP. How have their experiences been similar? What accounts for the similarities and differences?
-
Bea Jones (age 32) moved from Texas to Florida in December 2011. She lives at 654 Ocean Way, Gulfport, FL 33707. Bea's Social Security number is 466-78-7359 and she is single. Her earnings and income...
-
Rebecca and Walter Bunge have been married for 5 years. They live at 883 Scrub Brush Street, Apt. 52B, Las Vegas, NV 89125. Rebecca is a homemaker and Walt is a high school teacher. Rebecca's Social...
-
Sally hires a maid to work in her home for $250 per month. The maid is 25 years old and not related to Sally. During 2012, the maid worked 10 months for Sally. a. What is the amount of Social...
-
Check 21 is a federal law that lets banks handle more checks electronically, which should make check processing faster, more effi cient, and less expensive. Before Check 21 became effective in late...
-
Many banks offer online banking, but it does not appeal to everyone.
-
What is an example of an inexpensive loan, a medium-priced loan, and an expensive loan?
Study smarter with the SolutionInn App