Question: C# Convert Numbers to Letters (Complete The Code) Objective: Complete the rest of the code to print out the correct numbers to letter -The test

C# Convert Numbers to Letters (Complete The Code)

Objective: Complete the rest of the code to print out the correct numbers to letter

-The test numbers are given "{ 4, 3, 8, 9, 12, 2, 40 }"

Rules for conversion

If the number is even, it must change to an A

If the number is odd, it must change to a B

If the number is divisible by 8, it must change to C

-The after conversion must be from 4, 3, 8, 9, 12, 2, 40 to A,B,C,B,A,A,C Code Explanation

- verifyNumberToLetterCheck is to arrange the numbers to the right letter conversion

-printAll will show the numbers now converted into letters

-------CODE-------

using System; using System.Collections.Generic;

namespace Beginning { internal class Program { static void Main(string[] args) { int[] testNumbers = { 4, 3, 8, 9, 12, 2, 40 };

List numberConvert = verifyNumberToLetterCheck(testNumbers); printAll(numberConvert); }

private static void printAll(List numberConvert) { throw new NotImplementedException(); }

private static List verifyNumberToLetterCheck(int[] testNumbers) {

List evens = new List (); return evens; } } } \

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!