Question: ICA 18-13 Write a MATLAB program that will ask the user to enter their age, then ask them to enter the name of their best

ICA 18-13

ICA 18-13 Write a MATLAB program that will ask the user to

Write a MATLAB program that will ask the user to enter their age, then ask them to enter the name of their best friend, and then ask them to enter their friend's age. Determine the difference in the ages, and express this value as a positive integer. Finally, a statement in the following format should be displayed in the command window: My age is _________ years. _________ is my best friend. My friend's age is __________ years. The difference is our age is ________ years

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!