Post

Replies

Boosts

Views

Activity

Reply to What is wrong in this
Hi, It seems like you're mixing up several things. In your function you must switch on the day variable, not dayOfTheWeek which is the function name. When calling your function at the end you must give the aNumber variable as parameter. This code: var aNumber = 7 func dayOfTheWeek(day: Int) {     switch day {     case 2:         print("Monday")     case 3:         print("Tuesday")     case 4:         print("Wednesday")     case 5:         print("Thursday")     case 6:         print("Friday")     case 7:         print("Saturday")     case 8:         print("Sunday")     default:         print("Error")     } } dayOfTheWeek(day: aNumber) Will print the following output: "Saturday".
Dec ’21
Reply to I can't update macOS Monterey on my macbook pro
All I can do is confirm that your Macbook model is compatible with this version because I have the same model and I successfully upgraded to Monterey.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to What is wrong in this
Hi, It seems like you're mixing up several things. In your function you must switch on the day variable, not dayOfTheWeek which is the function name. When calling your function at the end you must give the aNumber variable as parameter. This code: var aNumber = 7 func dayOfTheWeek(day: Int) {     switch day {     case 2:         print("Monday")     case 3:         print("Tuesday")     case 4:         print("Wednesday")     case 5:         print("Thursday")     case 6:         print("Friday")     case 7:         print("Saturday")     case 8:         print("Sunday")     default:         print("Error")     } } dayOfTheWeek(day: aNumber) Will print the following output: "Saturday".
Replies
Boosts
Views
Activity
Dec ’21