A sample of carbon dioxide gas, CO2, occupies a volume of 5.0L at STP. What is the volume of carbon dioxide at 780 torrs and 25 degrees celsius?
You are given an M*N matrix and K, write a program to compute the area of the sub-matrix and print the result.
A sub-matrix is a matrix formed after deleting K rows each from the top and bottom and K columns each from left and right.
Area of a matrix is defined as the product of all elements of the matrix.
Explanation
For M = 5 and N = 4, the matrix is:
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
17 18 19 20
For K = 1, the sub-matrix is as follows:
6 7
10 11
14 15
Therefore, the area of the given matrix is 6*7*10*11*14*15 = 970200.
Sample Input1
5 4
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
17 18 19 20
1
Sample Output1
970200
Make a file by yourself named ”Integer.txt” and add 5 integer values in it. Now, write a C++ program that reads data (5 integers) from the file and store them in integer array. Also make another integer array (int result []) of same size to store the results. The program should check for each number in array if it is prime number or not. If the number is prime, update value in result[] array from 0 to 1. Lastly, write output in another file named “Result.txt”
A group of people are playing a game.They are standing and each carring a card with a number on it.These numbers in the list A. A random number S iis selected.
Find out the new list of numbers after
Sample Input1
1,2,3
1
Sample Output1
2 3
1 2
Write a program to print the not repeated string.
Input
The input contains a string S.
Output
The output contains a string, not repeated string.
A coil connected to a 220 V line is used to heat 500.0 g of water at 30°C. It is found out that after 5 minutes, the temperature of the water has risen to 80°C. What is the resistance of the coil?
5.8 g of an inorganic metal oxide ore mainly contains 90% of Nickel (III) oxide which decomposes to elemental nickel and oxygen gas. Produced 880 mL of oxygen were collected over water at a temperature of 25°C with a total pressure of 747 mmHg. *****What is the percent yield of decomposition reaction?***** (PH20:23.7 mmHg at 25°C)
A group of students got the following scores in an achievement test: 9,12,15,18, 21, and 24. Consider samples of size 3 that can be drawn from this population. A. Determine and list all possible samples and the corresponding sample means. SAMPLE MEANS RANDOM SAMPLES
A pair of dice is thrown. Find the probability that sum of the points on the two dice is 10 or greater if a 6
appears on the first die.
How many grams of O2 is produced when 42 g of potassium chlorate decomposes with the 71% yield.
KClO3 → KCl + O2
Assume that produced O2 is collected in a container, and it is pressure suddenly released
from 6.2 atm to 2.3 atm at 30°C. How much work, in joules, is done during this process?