as we know bulb is producing light to fight darkness when is connected to electricity so is it possible to create a bulb that producing dark to fight lightness?
How to execute this using vector
#include <iostream>
bool doesexists(int array[], int toseaarch, int size);
const short int SIZE = 10;
int main() {
int myarray[SIZE], distinct_ctr = 0, index = 0;
std::cout << "Enter 10 numbers: ";
for (index = 0; index < SIZE; index++) {
int tmp;
std::cin >> tmp;
if (!doesexists(myarray, tmp, SIZE)) {
myarray[distinct_ctr] = tmp;
distinct_ctr++;
}
}
std::cout << "distinct numbers are: ";
for (index = 0; index < distinct_ctr; index++)
std::cout << myarray[index] << " ";
std::cout << "\n";
return 0;
}
bool doesexists(int array[], int toseaarch, int size) {
for (int index = 0; index < size; index++) {
if (toseaarch == array[index])
return true;
}
return false;
}
Price
Quantity demanded
Elasticity coefficient
10
10,000
-
9
13,000
-2.47
8
17,000
7
22,000
6
25,000
use the arc or midpoint elasticity formula to calculate the elasticity coefficients when price changes from
Find the concentration of solution made by dissolving 2.50 g of sodium carbonate in 650 g of water?
What will be the final temperature if a 4 x 10⁷ J of heat is transferred to a 1 kg block of aluminum initially at 20°C
What happens to the air temperature in valley when cold air blowing from mountain top descending to the valley?
If the two coins are tossed which is not a possible value of the random variable for the number of tails
A 1.0 mm diameter wire is maintained at a temperature of 360◦C and exposed to a convection environment at 40◦C with h=120 W/m2·◦C. Calculate the thermal conductivity that will just cause an insulation thickness of 0.25 mm to produce a “critical radius.” How much of this insulation must be added to reduce the heat transfer by 26.8 percent from that which would be experienced by the bare wire?
If the probability density function of a random variable X is given by
𝑓(𝑥) = {2𝑘𝑥𝑒
−
𝑥2
, 𝑥 > 0
0,
𝑥
≤
Determine (i)k (ii)distribution function.
A meeting of envoys was attended by 4 Koreans and 4 Filipinos. If three envoys were selected at random one after the other, determine the values of the random variable K representing the number of Koreans.