about | help | code help+videos | done | prefs |
Write a method that accepts an input parameter String that represents any of the paint codes for the '90, '91, '92, or '93 Miata, as listed on this website: https://mikesmiataparts.com/p/paint-codes Return the NAME of the color. As a precondition, you may assume that the 'colorCode' will be one of the valid color codes for a 1990 through 1993 Miata. The rules are different if you are an SL or HL student: For SL and HL students, you are only allowed to use ONE "if" statement OR ONE ternary. You may use loops, recursion, etc. Your loops may have conditions in them, but they must REALLY be loops, not just a way to get around the limitation on "if" statements. AP and P1 students may have as many conditionals as they want... but please note that only one is actually needed. test2021_03_11_APP1SLHL_miataColor("PZ") → "brilliant black" test2021_03_11_APP1SLHL_miataColor("A3F") → "brilliant black" test2021_03_11_APP1SLHL_miataColor("PX") → "brilliant black" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 220
Copyright Nick Parlante 2017 - privacy