15. Set a variable years_in_school to 3. Use a Rust match statement to set a variable status to either "Freshman", "Sophomore", "Junior", or "Senior" depending on the value of the variable years_in_school. Remember that all possible values of years_in_school have to be accounted for in the match statement. Print out the variable status.
15. Set a variable years_in_school to 3. Use a Rust match statement to set a variable status to either "Freshman", "Sophomore", "Junior", or "Senior" depending on the value of the variable years_in_school. Remember that all possible values of years_in_school have to be accounted for in the match statement. Print out the variable status.
Related questions
Question
use the RUST

Transcribed Image Text:15. Set a variable years_in_school to 3. Use a Rust match statement to set a variable status to either "Freshman", "Sophomore",
"Junior", or "Senior" depending on the value of the variable years_in_school. Remember that all possible values of
years_in_school have to be accounted for in the match statement. Print out the variable status.
AI-Generated Solution
Unlock instant AI solutions
Tap the button
to generate a solution