subject

Find The Sum - Uncommon Alphabets - Uppercase Given two char arrays input1[] and input2[ ] which contains only upper case alphabets,

Step 1: Extract the alphabets which are present only in any one of the array.

(Uncommon alphabets)

Step 2: Get the ascii values of all the extracted alphabets.

Step 3: Calculate the sum of those ascii values, lets us call it as sum1 and calculate

single digit sum for sum1

ile keep adding the digits of sum1 until you arrive at a single digit.

Step 4: Return the single digit as output.

Note :

1. Array size ranges from 1 to 15.

2. All the array elements are upper case alphabets.

Example 1:

input1: ('A', 'B', 'C'}

input2: ('B', 'C')

output: 65 => 6 + 5 = 11

==> 1 + 1 = 2​

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:00
Which type of tab stop is most for weights and measurements?
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
How do you write an argumentative essay about the importance of free enterprise ?
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Write an assembly language program to input a string from the user. your program should do these two things: 1. count and display the number of words in the user input string. 2. flip the case of each character from upper to lower or lower to upper. for example if the user types in: "hello there. how are you? " your output should be: the number of words in the input string is: 5 the output string is : hello there. how are you?
Answers: 2
question
Computers and Technology, 24.06.2019 22:00
Need getting google account back, big issue
Answers: 2
You know the right answer?
Find The Sum - Uncommon Alphabets - Uppercase Given two char arrays input1[] and input2[ ] which co...
Questions
question
Geography, 19.09.2019 03:00
question
Mathematics, 19.09.2019 03:00
Questions on the website: 13722367