Question: ces Computer Software for Sciences > Assignment 4 > day of the week O solutions submitted (max: 6) define a function called day_of_week that takes

ces Computer Software for Sciences > Assignment 4 > day of the week O solutions submitted (max: 6) define a function called day_of_week that takes an integer value(n) and return two output: s which is the name of that day in a week and new line is_weekend which is a logical value that represent that they is weekend or not . If n is not an integer value between 1 to 7, s should be "Number must be from 1 to 7.In' example >> is, is_weekend] = day_of_week(1) SE Sundayin' is_weekend = logical 1 >> [s, is_weekend] = day_of_week(2) SE Mondayin is_weekend logical 1 >> [s, is_weekend] = day_of_week(9) S = "Number must be from 1 to 7. ' is weekend = logical 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
