Challenge: Switch
Tarefa
Swipe to start coding
Your task is to complete the PrintPlanDescription method so that it uses a switch statement to print the correct plan or day description based on the numeric code provided by the user.
- If the code is 1, print "Basic Plan".
- If the code is 2, print "Standard Plan".
- If the code is 3, print "Premium Plan".
- If the code is 4, print "Weekend".
- If the code is 5, print "Holiday".
- For any other code, print "Invalid code".
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 3. Capítulo 17
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Incrível!
Completion taxa melhorada para 1.25
Challenge: Switch
Deslize para mostrar o menu
Tarefa
Swipe to start coding
Your task is to complete the PrintPlanDescription method so that it uses a switch statement to print the correct plan or day description based on the numeric code provided by the user.
- If the code is 1, print "Basic Plan".
- If the code is 2, print "Standard Plan".
- If the code is 3, print "Premium Plan".
- If the code is 4, print "Weekend".
- If the code is 5, print "Holiday".
- For any other code, print "Invalid code".
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 3. Capítulo 17
single