Explain causes of monopoly
I don't have the question but I can explain.
if given n=4,
we should able to give 4 rows and 4 column matrix as input. matrix consists of 0's and 1's
ex;- 0 1 0 0
0 0 1 0
0 1 0 1
1 1 0 0
the 0 represents an empty space. the 1 represents a mine. you have to replace each mine with a x and each empty space with a number of adjacent mines
above example should print
1 X 2 1
2 3 X 2
3 X 4 X
X X 3 1
so sample input
4
0 1 0 0
0 0 1 0
0 1 0 1
1 1 0 0
and output should be
1 X 2 1
2 3 X 2
3 X 4 X
X X 3 1
Four cards are drawn from a desk without replacement. Find these probabilities.
a. All cards are jacks.
b. All cards are black cards.
c. All cards are hearts.
Average of given numbers
You are given space-sparated integers as input. write a program to print the average of the given numbers
INPUT
The first line of input contain space-seperated integer
OUTPUT
the output should be a float value rounded up to two decimal places
1 0 2 5 9 8
4.17
Compute the total quiz and average quiz of three (3) scores. Determine if the average score is greater than or equal to 70, if TRUE , display Remarks is “ PASSED” otherwise display “FAILED”.
In that problem, is R a know value that never changes?
(2<45°)/((3<120°)(4<180°)) leave your answer in rectangular form
A medical trial is conducted to test whether or not a new medicine reduces cholesterol by 25% test at 99% confidence level
A closed gaseous system undergoes a reversible process during which 25 BTU are rejected, the volume changing from 5 ft3 to 2 ft3, and the pressure remains constant at 50 psia. Find the change of internal energy.
A gas occupies a volume of 31.0L at 17.00C. If the gas temperature rises to 34.00C at constant pressure, would you expect the volume to double to 2.0L?