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%;...
-
State the purpose for each of the following built-in spreadsheet functions. (a) PV (i%, n, A, F) (b) FV (i%, n, A, P) (c) RATE (n, A, P, F) (d) IRR (first_cell: last_cell) (e) PMT (i %, n, P, F) (f)...
-
Which of the following commands removes all data from a table but leaves the tables structure intact? a. ALTER TABLE secustomerorders DROP UNUSED COLUMNS; b. TRUNCATE TABLE secustomerorders; c....
-
What does the responding party need to do to object to a motion for summary judgment?
-
During January, Luxury Cruise Lines incurs employee salaries of $3 million. Withholdings in January are $229,500 for the employee portion of FICA, $450,000 for federal income tax, $187,500 for state...
-
! Required information [The following information applies to the questions displayed below.] Phoenix Company reports the following fixed budget. It is based on an expected production and sales volume...
-
Suppose that the change in a portfolio value for a one-basis-point shift in the 1-year, 2-year, 3-year, 4-year, 5-year, 7-year, 10-year, and 30-year rates are (in $ million) +5, 3, 1, +2, +5, +7, +8,...
-
Train cars are coupled together by being bumped into one another. Suppose two loaded train cars are moving toward one another, the first having a mass of 130,000 kg and a velocity of 0.300 m/s, and...
-
Do you feel prepared to speak with people in the world of work? Why or why not? Be sure to provide ample examples of both strengths and weaknesses - and what you plan on doing to correct these...
-
A 1.89 C charge is at the origin and a -11.04 C charge is 10 cm to the right, as shown. I Y t II 1.89 C -11.04 10 cm III t. Identify the direction of E in the re- gion II (0 < x < 10 cm, along the x-...
-
There is twelve Fallacies of Reasoning . We call people who cleverly use these techniques to further their self-interests Devils of Deceit . The Devils of Deceit use Motivated Reasoning , seeking to...
-
We will be discussing topics to make sure that you've chosen a manageable one for this assignment, but here are a few sample problems you might want to consider writing about (choose ONLY ONE): not...
-
Michael exerts a force of 100 N on a 55.0 kg wheelbarrow, at an angle of 20.0 below the horizontal. Neglecting friction, what is the horizontal acceleration of the wheelbarrow?
-
1. Ten years ago Heather borrowed $400,000 to buy a house. She has a 30 year, 4.50% fixed rate mortgage. She made the 120th payment today. Payments are made monthly. She now owes $_________ on 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...
-
A damped free vibration is expressed by the general equation \(x=X e^{-\zeta \omega_{n} t} \sin \left(\sqrt{1-\zeta^{2}} \omega_{n} t+\phi ight)\) which is shown in Fig. 30 : The envelope \(A\) has...
-
What is the equivalent stiffness (i.e. spring constant) of the system shown in the given Fig. 31. (a) \(24 \mathrm{~N} / \mathrm{mm}\) (b) \(16 \mathrm{~N} / \mathrm{mm}\) (c) \(4 \mathrm{~N} /...
-
A statically-balanced system is shown in the given Fig.29. Two equal weights \(W\), each with an eccentricity, ' \(e\) ' are placed on opposite sides of the axis in the same axial plane. The axial...
Study smarter with the SolutionInn App