(Solved) : Challenge Activity 3101 Rock Paper Scissors Write Switch Statement Checks Nextchoice 0 Pri Q30985036 . . .

CHALLENGE ACTIVITY 3.10.1: Rock-paper-scissors Write a switch statement that checks nextChoice. If 0, print “Rock”. If 1, print “Paper”. If 2, print “Scissors”. For any other value, print Unknown. End with newline 1 #include <stdio.h> 2 3 int main(void) L 1 test passed int nextChoice; 6 scanf(“%d”, &nextChoice) ; All tests passed 8 Your solution goes here/ 10 return 0; Run Feedback? CHALLENGE ACTIVITY 3.10.2: Switch statement to convert letters to Greek letters Write a switch statement that checks origLetter. If ‘a’ or ‘A, print “Alpha. If ‘b’ or ‘B’, print “Beta”. For any other character, print “Unknown’. Use fall-through as appopriate. End with newline 1 #include <stdio.h> 2 3 int main(void) 4char origLetter; 1 test passed 6 scanf(” c”, &origLetter); 7 All tests passed 8 Your solution goes here*/ 10 return 0; Show transcribed image text
Expert Answer
Answer to Challenge Activity 3101 Rock Paper Scissors Write Switch Statement Checks Nextchoice 0 Pri Q30985036 . . .
OR