Search for question
Question

2. Create a Java Program that reads the name of a person and your code be able to calculate the number of characters consists in a name, the number of consonants

and vowels as well. Your program also will be able to calculate the destiny number. This number is calculated using your name. The value for each alphabet is shown below. 3 7 с G L P U Y A J S B K T D M V 5 E N W NAME COUNTER ? F O X Now add the digits assigned to each alphabet in your name. Then, add the individual destiny numbers to get the single digit which will be your final destiny number. Display your output using window. Your output shall display all the following information as shown in example below. X Your name: Ahmad Khalil Musa Total characters: 15 Vowels: 6 Consonants: 9 Destiny number: 8 OK 8 H Q Z I R Note: 1. Your code can accept spaces and both uppercase and lowercase letters. 2. You MUST change the icon/symbol of your output based on your own creativity. 3. You are NOT allowed to use Array. (20 marks)

Fig: 1