Write a program averageletter which will create an array


Problem:

Question- Write a program AverageLetter which will create an array of 5 characters. Prompt the user to enter any 5 letters of the English alphabet - both lower and upper cases are allowed. Store those values in the letterArray created previously.

Invoke a new method getAverage and pass the letterArray and the two arrays created in the previous problem. The getAverage method will determine the decimal value of each of the letters in the 5 elements array with the help of the two parallel arrays, asciiArray and decimalArray using their corresponding positions.

Calculate the average value of the letterArray by summing the respective decimal values and diving by 5. Return the average value back to the calling method.

Display the average value along with the highest letter based on the decimal value of each of the letter entered by the users.

Show the code, demonstrate it works properly and describe what it is doing.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program averageletter which will create an array
Reference No:- TGS0892998

Expected delivery within 24 Hours