Computers and Technology

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​

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 00:10, witerose701
Write a function so that the main0 code below can be replaced by the simpler code that calls function mphandminutes tomiles0. original main0 int main) l double milesperhour-70.0; double minutestraveled = 100.0; double hourstraveled; double milestraveled; hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; cout < "miles" 2 using namespace std; 4 /* your solution goes here/ 6 int maino 1 test passed 7 double milesperhour 70.0 all tests passed 8 double minutestraveled 100.0; 10 cout < < "miles: " < < mphandminutestomiles(milesper-hour, minutestraveled) < < endl; 12 return 0; 13
Answers: 1
image
Computers and Technology, 23.06.2019 04:00, terrell31
Write a method that takes in an array of point2d objects, and then analyzes the dataset to find points that are close together. be sure to review the point2d api. in your method, if the distance between any pair of points is less than 10, display the distance and the (x, y)s of each point. for example, "the distance between (3,5) and (8,9) is 6.40312." the complete api for the point2d adt may be viewed at ~pf/sedgewick-wayne/algs4/documenta tion/point2d. html (links to an external site.)links to an external site.. try to write your program directly from the api - do not review the adt's source code.
Answers: 1
image
Computers and Technology, 23.06.2019 13:30, mads000
Drag the tiles to the correct boxes to complete the pairs. match the errors with their definitions. #name #value #ref when a formula produces output that is too lengthy to fit in the spreadsheet cell arrowright when you enter an invalid cell reference in a formula arrowright when you type text in cells that accept numeric data arrowright when you type in a cell reference that doesn’t exist arrowright reset next
Answers: 1
image
Computers and Technology, 24.06.2019 00:00, BluedragonKBT44
The gene form of a trait is called a(n) 
Answers: 2
Do you know the correct answer?
Find The Sum - Uncommon Alphabets - Uppercase Given two char arrays input1[] and input2[ ] which co...

Questions in other subjects: