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.

icon
Related questions
Question

use the RUST

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.
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
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution