Question: Please help, Im using MATLAB Program Please make the codes clear and simple for me to understand thanks! 7. Write a script that calculates the
7. Write a script that calculates the number of hours a person has slept between the day they were born and September 7, 2018 assuming they sleep 8 hours a day (including on their birth day and September 7, 2018). Define variables for their birth year, month, and day and initialize them to 1999, 7, and 13. Define variables for the "current" year, month, and day and initialize them to 2018, 9, and 7. You may assume full years consist of 365 days. You may assume full months consist of 30.5 days and then round any final total of number of days to obtain an integer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
