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
-
Texon Co. manufactures and sells three products: product 1, product 2, and product 3. Their unit sales prices are product 1, $40; product 2, $30; and product 3, $14. The per unit variable costs to...
-
A fluid ( = 1000 kg/m 3 , m = 1.4 10 -3 kg/ms, c p = 4.2 kJ/kg K, and k = 0.58 W/mK) flows with an average velocity of 0.3 m/s through a 14-m-long tube with inside diameter of 0.01 m. Heat is...
-
Ann Duxbury started her practice as a design consultant on March 1, 2010. During the first month of operations, the business completed the following transactions: Requirements 1. Open the following...
-
Starbright Coffee Shop at the Galleria Mall serves two coffee blends it brews on a daily basis, Pomona and Coastal. Each is a blend of three high-quality coffees from Colombia, Kenya, and Indonesia....
-
Case : Western Tech is considering a new project that will require $118,000 of fixed assets and net working capital of $16,000. The fixed assets will be depreciated on a straight-line basis to a zero...
-
Q3: Consider a solid conducting sphere of radius R with a uniform magnetization M = M and carrying a surface charge Q. a) Calculate the electric & magnetic field everywhere. b) Calculate the momentum...
-
Two months ago, Ronaldo sold a European call option on 20000 Canadian Dollars (CAD) with an expiration date of two months and a premium of 0.002 Euro per unit and exercise price of 0.65 Euro....
-
The following figure presents a finite element mesh for a plane strain configuration. All the constraints that appear are hinges apart from the ones in node 2 and node 4 which correspond to rollers...
-
Walton Company measured its quality costs for the past two years and summarized those costs using the four categories shown below: Last Year Appraisal costs Prevention costs Internal failure costs $...
-
Total Labor- Square Feet of Department Hours Space Occupied Number of Employees Machine- Hours Direct Labor- Hours Personnel 16,000 12,400 22 Custodial Services 8,200 3,100 49 Maintenance 14,300...
-
For the following set of forecasts (17, 20, 25, 31, 39) and actual values (19, 24, 28, 32, 38), calculate the MAD. Data collected on the annual demand for 50-pound fertilizer at Pikes Garden Supply...
-
Shown below in light grey is a thin film. Consider the reflections from the top and bottom surface of the film (colored rays in the figure). Suppose we know that n < n2
-
What would Chelsea's premium have been for the first year if she had purchased $250,000 whole life when she was 20? a. b. $369.50 $2,462.50 C. $241.25 d. $2,412.50
-
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...
-
A spring controlled governor is found unstable. It can be made stable by (a) increasing the spring stiffness (b) decreasing the spring stiffness (c) increasing the ball weight (d) decreasing the ball...
-
Two co-axial rotors having moments of inertia \(I_{1}, I_{2}\) and angular speeds \(\omega_{1}\) and \(\omega_{2}\) respectively are engaged together. The loss of energy during engagment is equal to...
-
Consider the following statements regarding a high speed in-line engine with identical reciprocating parts with cranks spaced to give equal firing intervals: 1). All harmonic forces, except those...
Study smarter with the SolutionInn App