Question: Need matlab help Homework 6 Conditionals Function Name: wakeMeUp Inputs 1. (char) The time when you wake up on a 24-hour scale (format: ' :

Need matlab help Homework 6 Conditionals Function Name: wakeMeUp Inputs 1. (char)Need matlab help

Homework 6 Conditionals Function Name: wakeMeUp Inputs 1. (char) The time when you wake up on a 24-hour scale (format: ' :') 2. (char) The time of your first class 3. (char) Mode of transport to get to your first class Outputs 1. (char) A string describing whether or not you were late and why Function Description: As you hear the sound of your roommate's alarm going off, playing their favorite Green Day song, "Wake Me Up When September Ends", you bolt upright in bed in a panic. You didn't set your alarm! Will you be late to class?? Use MATLAB to determine the fate of your morning attendance by following these rules: 1. If you oversleep and wake up after or at the exact time of your first class, output this You overslept and missed your first class. Better set your alarm next time! 2. If you wake up before your first class, there's hope you might make it! Consider your mode of transportation to see if you will make it to class this morning Mode of Transport skateboarding walking 'stinger bus" Number of minutes 10 15 Output this if your transportation gets you to class after it starts You rush to get to class by , but sadly you are still late. Better set your alarm next time!' Or this if you get there exactly at the right time or before your class starts 'You rush and make it to class just in time by . Nice! Notes: .All times will be written on a 24 hour scale. So 1:40 pm would be 13:40 Hints: . You can use strtok to separate a string based on any delimiting character Use %s for adding a string variable when using sprintf() . Consider using a switch statement when dealing with the mode of transportation

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!