Write a program that reads 7 scores as input and outputs the average. The program should use an array of
floats. Note that you need to determine the highest and the lowest score and exclude them in the computation.
Palindrome Pairs
Given a list of unique words, write a program to print all the pairs of the distinct indices (i, j) in the given list, so that the concatenation of two words at indices i and j is a palindrome.
The input will be a single line containing a sentence.
The output should be printing each distinct pair of indices (i, j) each in a line in ascending order.
If there are no distinct pairs found, print "-1"
Note: Consider (i, j) and (j, i) as two different pairs.
For example, if the given sentence is
was it a car or a cat I saw
The words that can be concatenated to make a palindrome are
WordsIndices(was, saw)(0, 8)(a, a)(2, 5)(a, a)(5, 2)(saw, was)(8, 0)
Sample Input 1
was it a car or a cat I saw
Sample Output 1
0 8
2 5
5 2
8 0
Concatenate Word Pairs
Given a sentence and an integer L, write a program to concatenate word pairs so that the concatenated word has the length L.
The first line of input will be a sentence.
The second line of input will be an integer L.
The output should be containing the unique concatenated word pairs each in a line in the lexicographical order.
For example, if the given sentence and L are
Welcome to your exam
6
The words which can be paired so that they make concatenated word with length 6 are
Word1Word2toyourtoexamexamtoyourto
So the output should be printing each concatenated word in a line in the lexicographical order
examto
toexam
toyour
yourto
Sample Input 1
Welcome to your exam
6
Sample Output 1
examto
toexam
toyour
yourto
Sample Input 2
My parents and I went to a movie
9
Sample Output 2
Myparents
moviewent
parentsMy
parentsto
toparents
wentmovie
Area of Rectangle
Given an MxN matrix filled with
The first line of input will be containing two space-separated integers, denoting M and N.
The next M lines will contain N space-separated integers, denoting the elements of the matrix.
The output should be a single line containing the area of the maximum rectangle.
For example, if the given M, N and elements of matrix are as the following
4 5
X O X O O
X O X X X
X X X X X
X O O X O
The matrix from indices (1, 2) to (2, 4) has the maximum rectangle with
X. So the output should be the area of the maximum rectangle with X, which is 6.
Sample Input 1
4 5
X O X O O
X O X X X
X X X X X
X O O X O
Sample Output 1
6
Sample Input 2
3 3
O X X
O X X
O O O
Sample Output 2
4
Number to English Words
Write a program to convert a non-negative integer
The input will be a single line containing an integer
The output should be a single line containing the representation of the English words of number
For example, if the given number is 123, your code should print the English words representation, which is
One Hundred Twenty Three
Sample Input 1
123
Sample Output 1
One Hundred Twenty Three
Sample Input 2
10005
Sample Output 2
Ten Thousand Five
Sample Input 3
1234567891
Sample Output 3
One Billion Two Hundred Thirty Four Million Five Hundred Sixty Seven Thousand Eight Hundred Ninety One
Magazine. Ai to banking
In the discussion forum titled “Critical Reader”, answer the following questions about each of the magazine covers you chose:
5. What could be changed on this magazine cover to appeal to a different demographic?
6. Any thoughts on the magazine covers?
Link
https://www-businessinsider-com.cdn.ampproject.org/v/s/www.businessinsider.com/ai-in-banking-report?amp&usqp=mq331AQTKAFQApgByIm0zqHYlsG_AbABIA%3D%3D&_js_v=a6&_gsa=1#referrer=https://www.google.com&csi=0
magazine Ai to banking
In the discussion forum titled “Critical Reader”, answer the following questions about each of the magazine covers you chose:
1. What magazine did you chose?
2. How does the magazine portray the person/activity on the cover?
3. What is the intended demographic of this magazine (i.e. Who is the intended audience?)
4. How do you know?
What is the output of the following Java code?
count = 1;
y = 100;
while (count < 100)
{
y = y - 1;
count++;
}
System.out.println("y = " + y + " and count = " + count);
Design a class template with overloaded operator / to perform a = b / c.
Two point lies on plane each point has two axis x and y. write a function having point return type to calculate mid-point of two points. Hint class point, data members x, y, return object. In c++