Following operations are to be performed in the given order to obtain the whole matrix.
1. One diagonal of matrix is DRAG and the other diagonal is 2021 in the same order. Both have their first element in the first column and 4th column respectively.
2. The immediate neighbour of any alphabet in the same row is the alphabetical position of that number.
3. The remaining places are to be filled by taking the sum of the two numbers surrounding that place in the same row.
|
1
|
2
|
3
|
4
|
%
|
D
|
4
|
6
|
2
|
#
|
18
|
R
|
0
|
18
|
@
|
3
|
2
|
A
|
1
|
$
|
1
|
8
|
7
|
G
|
In the obtained matrix, the value of the sum of all digits in the second column would be more than that of the third column.
The compiler of a PC will respond to the input by calculating the value of the string as per the following conditions.
1. If there are equal number of even and odd numbers in the string, then value of the string will be the product of average of all the even numbers and average of all the odd numbers.
2. If there are equal number of alphabets and numbers in the string, then the value of string will be the product of the sum of the alphabetical position of all the alphabets and sum of all the numbers.
3. If there is only one even number in the string, then the value of string will be the average of all the numbers in that string.
4. If there is a vowel in the string, then value of the string will be the alphabetical position of that vowel.
5. If none of the above mentioned conditions follow, then the value of the string will be obtained by multiplying the lowest number from the highest number in that string.
AA = @1 $3 %3 #4
AA = 3 7 6 18
This satisfies condition 1.
Therefore, value of the string will be the product of average of all the even numbers and average of all the odd numbers.
Average: 3 + 7 = 10 ; (10 ÷ 2) = 5; 6 + 18 = 24; (24 ÷ 2) = 12
Product = 5 × 12 = 60;
Value of AA = 6 (6 + 0 = 6)
BB = %2 @3 #3 $2
BB = 4 A 0 8
This satisfies condition 4.
Therefore, the value of the string will be the alphabetical position of that vowel.
A = 1
Value of BB = 1
CC = %4 $2 @3 $4
CC = 2 8 A G
CC = 2 8 1 7
This satisfies condition 2.
(If there are equal number of alphabets and numbers in the string, then the value of string will be the product of the sum of the alphabetical position of all the alphabets and sum of all the numbers.)
Average: 2+ 8 = 10 ; (10 ÷ 2) = 5; 7 + 1 = 8; (8 ÷ 2) = 4
Product = 5 × 4 = 20;
Value of CC = 2 (2 + 0 = 2)
DD = $2 #1 @1 $1
DD = 8 18 3 1
This satisfies condition 3.
(If there is only one even number in the string, then the value of string will be the average of all the numbers in that string.)
Average = 8 + 18 + 3 + 1 = 30
Value of DD = 3 (3 + 0 = 3)
Note:
1. The value of an input is obtained by adding the values of all the strings and then the digits in that value is added up to the point where it becomes a single digit number and then it is taken as an input.
2. If only a single string is given, then the digits in that value is added upto the point where it becomes a single digit number and then it is taken as input.
3. If the value of an input is a prime number, then the program will be executed.
If the value of an input is an even number, then program will not be executed.
If the value of an input is both even and prime number, then program will be executed but it will show an error.
If the value of an input is other than the above mentioned values, then PC will hang.
The value of input if only signal BB and CC is taken into account: BB + CC
BB= 1; CC = 2.; The value of Input = 1 + 2 = 3
Since, the value of input is 3. 3 is a prime number, then the program will be executed.