Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Design Statement Write a MATLAB script that will determine a person's age based on the birth date that is input. The script should determine

image
image

Design Statement Write a MATLAB script that will determine a person's age based on the birth date that is input. The script should determine the age in years, weeks, days, hours, minutes, and seconds and output that information using the formatting shown below. The output should also include the user's name, birth date, and the current date. As of today, 21-Jun-2018, Joe Student, who was born on 4-15-1997, is officially: 21.18 years old. 1105.37 weeks old 7737.62 days old. 185702.81 hours old. 11142168.48 minutes old 668530108.58 seconds old 2. Two useful functions are now and datenum. When learning about datenum, you are encouraged to use help (and not doc) and start by looking at the examples at the end of the help information. 3. Include your basic pseudocode as a comment block at the end of your script. 4. The script must: a. Be fully commented using the conventions covered in this unit. b. Use screen-directed input. c. Display all output in the command window such that following the last line

Step by Step Solution

3.57 Rating (161 Votes )

There are 3 Steps involved in it

Step: 1

Age Calculator Script Prompt user for their name name inputPlease enter your name s Prompt user for ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Electric Machinery

Authors: Charles Kingsley, Jr, Stephen D. Umans

6th Edition

71230106, 9780073660097, 73660094, 978-0071230100

More Books

Students also viewed these Programming questions