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, 21.06.2019 18:10
For each of the following claims, determine whether they are true or false. justify your determination (show your work). if the claim is false, state the correct asymptotic relationship as o, θ, or ω. unless otherwise specified, lg is log2.(a) (b) (c) (d) (e) (f) (g) (h) (i) (j)n+1 =22n =2n =1 =ln2 n =n2 +2n−4 =33n = 2n+1 =√n = 10100 =o(n4) o(2n)θ(2n+7 ) o(1/n)θ(lg2 n) ω(n2 )θ(9n ) θ(2n lg n )o(lg n) θ(1)
Answers: 1
question
Computers and Technology, 23.06.2019 20:10
Leo is a recruitment executive for a large company. he has identified new labor resource requirements in both the marketing and production departments. what should be his first step in recruiting candidates for the positions? a. conduct background checks of candidates b. make job offers c. arrange interviews d. conduct reference checks e. place job ads on job sites
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
Answer these and get 40 points and brainliest
Answers: 1
question
Computers and Technology, 24.06.2019 17:00
What are some examples of what can be changed through options available in the font dialog box? check all that apply. font family italicizing bolding pasting drop shadow cutting character spacing special symbols
Answers: 2
You know the right answer?
Find The Sum - Uncommon Alphabets - Uppercase Given two char arrays input1[] and input2[ ] which co...
Questions
question
Mathematics, 04.02.2020 13:58
question
Mathematics, 04.02.2020 13:58
Questions on the website: 13722363