Question: Find and fix six errors in the code below. Please copy and paste the code in the submission field, then add your suggested modifications and
Find and fix six errors in the code below.
Please copy and paste the code in the submission field, then add your suggested modifications and short explanations as comments.
public static double ReturnRomanNumeral() { string val switch (number case 1: val = "I"; break;
case 2: val = "II"; break;
case 3: val = "III"; break;
case 4: val = "IV"; break;
case 5: val = "V"; break;
case 6: val = "VI"; break;
case 7 : val = "VII"; break;
case 8 : val = "VIII"; break;
case 9: val = "IX"; break;
case 10: val = "X"; break;
default: val = "?"; break; return val; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
