subject
Business, 26.09.2019 16:30 21vdawson

Add a member function, isleapyear, to check whether a year is a leap year. moreover, write a test program to test your class. the class datetype was designed and implemented to keep track of a date, but it has very limited operations. redefine the class datetype so that it can perform the following operations on a date, in addition to the operations already defined: set the month. set the day. set the year. return the month. return the day. return the year. test whether the year is a leap year. return the number of days in the month. for example, if the date is 3-12-2017, the number of days to be returned is 31 because there are 31 days in march. return the number of days passed in the year. for example, if the date is 3-18-2017, the number of days passed in the year is 77. note that the number of days returned also includes the current day. return the number of days remaining in the year. for example, if the date is 3-18-2017, the number of days remaining in the year is 288. calculate the new date by adding a fixed number of days to the date. for example, if the date is 3-18-2017 and the days to be added are 25, the new date is 4-12-2017.

ansver
Answers: 3

Another question on Business

question
Business, 22.06.2019 02:00
Precision dyes is analyzing two machines to determine which one it should purchase. the company requires a rate of return of 15 percent and uses straight-line depreciation to a zero book value over the life of its equipment. ignore bonus depreciation. machine a has a cost of $462,000, annual aftertax cash outflows of $46,200, and a four-year life. machine b costs $898,000, has annual aftertax cash outflows of $16,500, and has a seven-year life. whichever machine is purchased will be replaced at the end of its useful life. which machine should the company purchase and how much less is that machine's eac as compared to the other machine's
Answers: 3
question
Business, 22.06.2019 05:40
Grant, inc., acquired 30% of south co.’s voting stock for $200,000 on january 2, year 1, and did not elect the fair value option. the price equaled the carrying amount and the fair value of the interest purchased in south’s net assets. grant’s 30% interest in south gave grant the ability to exercise significant influence over south’s operating and financial policies. during year 1, south earned $80,000 and paid dividends of $50,000. south reported earnings of $100,000 for the 6 months ended june 30, year 2, and $200,000 for the year ended december 31, year 2. on july 1, year 2, grant sold half of its stock in south for $150,000 cash. south paid dividends of $60,000 on october 1, year 2. before income taxes, what amount should grant include in its year 1 income statement as a result of the investment?
Answers: 1
question
Business, 22.06.2019 12:50
Performance bicycle company makes steel and titanium handle bars for bicycles. it requires approximately 1 hour of labor to make one handle bar of either type. during the most recent accounting period, barr company made 7,700 steel bars and 2,300 titanium bars. setup costs amounted to $35,000. one batch of each type of bar was run each month. if a single company-wide overhead rate based on direct labor hours is used to allocate overhead costs to the two products, the amount of setup cost assigned to the steel bars will be:
Answers: 2
question
Business, 22.06.2019 19:20
Win goods inc. is a large multinational conglomerate. as a single business unit, the company's stock price is estimated to be $200. however, by adding the actual market stock prices of each of its individual business units, the stock price of the company as one unit would be $300. what is win goods experiencing in this scenario? a. diversification discount b. learning-curveeffects c. experience-curveeffects d. economies of scale
Answers: 1
You know the right answer?
Add a member function, isleapyear, to check whether a year is a leap year. moreover, write a test pr...
Questions
question
Mathematics, 07.03.2021 02:10
question
Mathematics, 07.03.2021 02:10
question
Social Studies, 07.03.2021 02:20
question
Mathematics, 07.03.2021 02:20
question
Mathematics, 07.03.2021 02:20
question
Mathematics, 07.03.2021 02:20
Questions on the website: 13722361