Use c program to solve this. Problem B [10 marks] Write a program to calculate age (birth
Fantastic news! We've Found the answer you've been seeking!
Question:
Use c program to solve this.
Transcribed Image Text:
Problem B [10 marks] Write a program to calculate age (birth date and current date will be entered by user). Make a structure named Date to store the elements day, month and year to store the dates. Calculate age and print it. Input Sample DOB: 2 2 1995 Current Date: 171 2021 Output Sample Age: 25 years 11 months 15 days Problem B [10 marks] Write a program to calculate age (birth date and current date will be entered by user). Make a structure named Date to store the elements day, month and year to store the dates. Calculate age and print it. Input Sample DOB: 2 2 1995 Current Date: 171 2021 Output Sample Age: 25 years 11 months 15 days
Expert Answer:
Answer rating: 100% (QA)
Answer C CODE include define the struct for Date struct Date int day to store the day int month to store the month int year to store the year define t... 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
-
Use the program developed in Prob. 26.11 to solve Prob. 26.7.
-
Use the program developed in Prob. 27.13 to solve Probs. 27.2 and 27.4.
-
Use the program developed in Prob. 27.l5 to solve Probs. 27.3 and 27.5.
-
You are developing an industrial building with a gross building area of 150,000 sf. The building efficiency ratio is 75%. The market gross rent is $25 psf. The vacancy rate is 5%; the cap rate is 5%;...
-
Here are several comments that relate to either the quality-based view or the traditional view of quality. 1. Most of our staff accountants dont stay with us long enough so that we can trust their...
-
Explain why the F-ratio is expected to be near 1.00 when the null hypothesis is true.
-
The Luh Company's 2017 cash flow statement appears below, in its functional currency, New Taiwan dollars (NT\($). Additional information: 1. Exchange rates: January 1, 2017: \($0.042/NT$;\) December...
-
The manager of Able Car Inspection reviewed his monthly operating costs for the past year. His costs ranged from $4,000 for 1,000 inspections to $3,600 for 600 inspections. Requirements 1. Calculate...
-
how do you enter this in the General ledger/Journal Entry?. Sold 200 shares of Lucas Corporation common stock for $27.00 per share. The shares were originally purchased on July 11, 2022, for $23.00...
-
The irreversible first-order (wrt partial pressure of A) gas-phase reaction A B is carried out isothermally in a "fluidized" catalytic CSTR containing 50 kg of catalyst. Currently, 50% conversion is...
-
What type of contract is this? What are all of the elements of a contract? Can Mary Jane avoid paying the additional $4,000.00? Is there any defense that she can use? Is there any defense for Ronald?
-
A neutron star is the remnant left after certain supernovae ( explosions of giant stars ) . Assume a neutron star is about 1 8 km in diameter and has around the same mass as our sun. What is this...
-
As we discuss managerial accounting, remember that most companies fall into one of three categories: service companies, merchandising companies, and/or manufacturing companies. Some companies are...
-
The inverse demand function in the industry is p(y)=10-2y. The marginal costs are constant and equal 2, the fixed costs are zero. a. If the industry is perfectly competitive, what are the equilibrium...
-
From your lectures, you already know what Min-terms and Max-terms are. Here, we will use the same techniques to create a K-Map, given a truth table with Min-terms. We will start with a small 3...
-
BuildCorp owns a plot of land in Barangaroo and is considering building apartments on the land. The building would cost $115 million to build. BuildCorp estimates that similar buildings would be...
-
stock is expected to pay a dividend of $2.75 at the end of the year (i.e., D1= 2 .75), and it should continue to grow at a constant rate of 5% a year. If its required return is 15%, what is the...
-
An interest bearing promissory note for 90 days at 5.6% p.a. has a face value of $120,000. If the note is discounted 20 days after the issue date at a rate of 6.8% p.a., calculate the amount of...
-
Patty Bayan is a single taxpayer living at 543 Space Drive, Houston, TX 77099. Her Social Security number is 466-33-1234. For 2012, Patty has no dependents, and her W-2 from her job at a local...
-
Marty is a sales consultant. Marty incurs the following expenses related to entertainment of his clients in 2012: Dues to a country club......................................................$4,500...
-
Ann hires a nanny to watch her two children while she works at a local hospital. She pays the 19-year-old nanny $125 per week for 48 weeks during the current year. a. What is the employer's portion...
-
Herbalife Ltd: has a subsidiary in Spain, Herbalife International Espafia, S.A., whose functional currency is the euro. Relevant translated data for the subsidiary appear below. Required a. Calculate...
-
Oliver Corporation decided on January 1, 2017, that its Canadian subsidiary's functional currency is the Canadian dollar rather than the U.S. dollar. On that date, the net assets of its Canadian...
-
The Thode Company established a wholly-owned subsidiary in Saudi Arabia on January 1, 2016, when the exchange rate was \($0.30/riyal\) (SAR). Of Thode's initial SAR200,000,000 investment, SAR...
Study smarter with the SolutionInn App