14. February Days The month of February normally has 28 days. But if it is a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
14. February Days The month of February normally has 28 days. But if it is a leap year, February has 29 days. Write a program that asks the user to enter a year. The program should then display the number of days in February that year. Use the following criteria to identify leap years: 1. Determine whether the year is divisible by 100. If it is, then it is a leap year if and if only it is also divisible by 400. For example, 2000 is a leap year but 2100 is not. 2. If the year is not divisible by 100, then it is a leap year if and if only it is divisible by 4. For example, 2008 is a leap year but 2009 is not. Here is a sample run of the program: Enter a year: 2020 [Enter] In 2020 February has 29 days. on reports when the next leap 14. February Days The month of February normally has 28 days. But if it is a leap year, February has 29 days. Write a program that asks the user to enter a year. The program should then display the number of days in February that year. Use the following criteria to identify leap years: 1. Determine whether the year is divisible by 100. If it is, then it is a leap year if and if only it is also divisible by 400. For example, 2000 is a leap year but 2100 is not. 2. If the year is not divisible by 100, then it is a leap year if and if only it is divisible by 4. For example, 2008 is a leap year but 2009 is not. Here is a sample run of the program: Enter a year: 2020 [Enter] In 2020 February has 29 days. on reports when the next leap
Expert Answer:
Answer rating: 100% (QA)
14 February Days Get user input year intinputEnter a year Check if the year is a leap ye... View the full answer
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Posted Date:
Students also viewed these programming questions
-
, for which a-value(s) does f'(x) not exist? Using the graph of f(x) (A)=1 (B) x 0 and z=1 (C) x=2 (D) x = 1 and x = 2 (E) 0 and a=2
-
1. Weekend breaks sell for 300 each. Ten per cent is payable when the holiday is booked and the remainder after two months. 2. Travel agents are paid a commission of 10 per cent of the price of the...
-
If necessary, create a new project named Advanced26 Project and save it in the Cpp8\Chap11 folder. Also create a new source file named Advanced26.cpp. Declare a 12-element int array named days....
-
Sketch the graph of the function. y = e -x/2
-
For the sign test of matched pairs, do pairs for which the difference in values is zero enter into any calculations?
-
The recognition of an expense usually occurs based on one of the following three intrinsic principles: (a) Associating Cause and effect (b) Systematic and rational allocation (c) Immediate...
-
Assume that Fireside Inc. purchased \(30 \%\) of the common stock of Theater Supplies Corporation on January 1, 2020 , for \(\$ 100,000\). Fireside Inc. elected to account for its investment using...
-
Youngsborough Products, a supplier to the automotive industry, had seen its operating margins shrink below 20% as its customers put continued pressure on pricing. Youngsborough produced four products...
-
?Kyle has ?$900 in cash received for high school graduationgifts from various relatives. He wants to invest it in acertificate of deposit? (CD) so that he will have a down payment ona car whe 2...
-
Financial information for Buckle is presented in Appendix B at the end of the book. Required: 1. Determine the amounts Buckle reports for total assets, total liabilities, and total stockholders...
-
3) Dull Inc. purchased a machine for $10,000 on July 1, 20X1. The machine had an estimated useful life of 3 years and a residual value of $1,000. The carrying value of the machine as of December 31,...
-
1.Describe the role and purpose of an internal auditor for a business. Neha has drafted the ledger accounts and financial statements at year end of her promotion s and marketing business and is...
-
You make a one-time $2,000 deposit into an account which pays 7% compounded weekly. If you don't touch the account for 6 years, what will be the final balance at the end of the term?
-
Nickerson Inc., a health services firm, is expected to grow rapidly in the next two years and then have a level growth rate of 6 percent per annum for the foreseeable future. The firm expects free...
-
The flu virus causes infant mortality and an anti-flu vaccine is used as treatment, which reduces the impact of the disease burden caused by the flu virus on children under 10 years of age in...
-
The City of Mimosa reports most types of investments at fair value, except those exempted by GASB Statement No. 72. The following transactions occurred in the City of Mimosa during fiscal year 20X4...
-
Williams Industries has outstanding 30 million common shares, 20 million Class A shares, and 20 million Class B shares. Williams has the right but not the obligation to repurchase the Class A shares...
-
Cobb Manufacturing Company uses a process cost system and average costing. The following production data is for the month of June 2011. Production Costs Work in process, beginning of the month:...
-
If necessary, create a new project named Advanced28 Project and save it in the Cpp8\Chap11 folder. Also create a new source file named Advanced28.cpp. The program should declare a 20-element,...
-
Write an assignment statement that raises the number 3 to the 16th power and then assigns the result to a double variable named answer.
-
In this exercise, you use the Rectangle class from Lab 15-2 to instantiate a Rectangle object in the All-Around Fence Company program. If necessary, create a new project named Intermediate14 Project....
-
In this exercise, we explore what happens when an item is marked up by a percentage, and then marked down using the same percentage. Wegmans purchases an item for \(\$ 5\) per unit. The markup on the...
-
Unit Conversion. There are 1,000 meters \((\mathrm{m})\) in a kilometer \((\mathrm{km})\), and 100 centimeters \((\mathrm{cm})\) in a meter. Convert \(4 \mathrm{~km}\) to centimeters.
-
Markup. In this exercise, we introduce the concept of markup. The markup on an item is the difference between how much a store sells an item for and how much the store paid for the item. Suppose...
Study smarter with the SolutionInn App