Question #168149
For each Query operation print the element present at row index K and column index L of the matrix in its current state.
For Input:
2
5 6
7 8
R 90
Q 0 1
R 270
Q 1 1
R 180
U 0 0 4
Q 0 0
-1
Here , you are providing the expert code. But, the code passed only 3/7 test cases. Whenever i tried with above input i will get 5 8 5.But, actual output is 5 8 8.
You are requested by a SuperStore (Spar) in Soshanguve to calculate it’s earning for the week (the
store opens the entire week) and determine the day with the highest and lowest earnings. The
Store comprises of two sections namely the Food section and the Liquor store.
Your C++ program should prompt the total sales for each section for each day and store the
total sales for the day into an array. At the end of the week It should display a report for
Management for the total sales for that week, the day the lowest sales and the day with the
highest sales were recorded.
11. Given the array weekdays, what is the data type of the array considering the elements?
a. string
b. double
c. real
d. int
12. The position of an element in array is called a transcript
a. True
b. False
13. An array can store a group of values, but the values must be:
a. The same data type
b. Each of different data type
c. Constants
d. Integers
14. A one-dimensional array can be seen as a single column with just one row or a single row with single column
a. True
b. False
6. The elements of an array can consist of multiple variables at individual times, each having a single value.
a. True
b. False
7. The elements of array are distinguished from one another by a unique index
a. True
b. False
8. An array's subscript or index always starts from 1, with the last subscript corresponding to n - 1
a. True
b. False
9. With one-dimensional arrays, programmers can write shorter and more efficient code, while still providing the read-in data after the array has been read.
a. True
b. False
10. Given a one-dimensional array of weekdays: weekdays(7), what is the fourth index element?
Monday Tuesday Wednesday Thursday Friday Saturday Sunday
a. Friday
b. Thursday
c. Saturday
d. Sunday
1. Grade [2] refers to a third value stored in an array
a. True
b. False
2.Which of the following is a valid C++ array definition?
a. int scores[0];
b. float $payments[10];
c. int reading[4.5];
d. int scores[10];
3. The elements of an array are of different data types
a. True
b. False
4. The following declaration is valid char code[3] = {“sam”,”anna”,”max”}
a. True
b. False
5. Given the following declaration, where is the value 77 stored in the scores array? int scores[] = {83, 62, 77, 97};
a. scores[0]
b. scores[1]
c. scores[2]
d. scores[4]
You are requested by a store opens the entire week) Store comprises of two sections namely the Your in Soshanguve to calculate it SuperStore (Spar) and determine the day with the highest Food section C++ program anagement for the should prompt the total sales for each section for each day [27 ] ’ s earning for the week and lowest earning s (the . The a nd the Liquor store . and store the total sales for the day into an array. At the end of the week It should display a report for M total highest sales were sales for that week, t recorded.
Composite Number
Given an integer N, write a program to find if the given number is a composite number or not. If it is composite, print True or else print False.
Input
The first line of input is an integer N.
Output
The output should be True or False.
Explanation
In the given example, 12 is a composite number as it can be divisible by 1, 2, 3, 4, 6, 12.
Therefore, the output should be True.
in the given example 12345678911 and the output should be True
Composite Number
Given an integer N, write a program to find if the given number is a composite number or not. If it is composite, print True or else print False.
Input
The first line of input is an integer N.
Output
The output should be True or False.
Explanation
In the given example, 12 is a composite number as it can be divisible by 1, 2, 3, 4, 6, 12.
Therefore, the output should be True.
in the given example 12345678911 and the output should be True
You are given a string, write a program to find whether the string is palindrome or not.
Note: Treat uppercase letters and lowercase letters as same when comparing letters. Ignore spaces and quotes within the string.
The first line of input is a string.
The output should be
In the given example, the string
No lemon no melon is a palindrome as we are ignoring spaces. So, the output should be True.
Was it a cat I saw? so the output should be False
All relations are in 1st Normal form. Explain.