Explain how overloading a unary operator is almost similar to overloading a binary operator with necessary examples and include main() function to demonstrate. Mention the differences between these two in terms of number of operands they deal with.
What is the heat change (KJ) when 2.31 moles of chlorine reacts with methane?
Super 6 is one such game. In the game a player selects 6 numbers from 1 – 28. If you match all 6 numbers, you win the Jackpot. If you match 5 out of the 6 numbers, you win $500. If you match 4 out of the 6 numbers, you win $25. There is a separate chamber where you must select 1 of 15 letters from A – O. If you match the correct letter, you win a free ticket.
a) How many possible combinations are there for matching all 6 numbers?
b) What is the probability that if you purchase one ticket that you will win the Jackpot?
c) What is the probability that if you purchase the lottery that you will win exactly $500?
d) What is the probability that if you purchase the lottery that you will win exactly $25?
A manufacturer can produce radios at a cost of $10 apiece an estimated that if they are sold for x dollars, consumers will buy approximately80-x radios each month. Express the manufacturer’s monthly profit as a function of the price x, graph this function, and determine the price at which the manufacture’s profit will be greatest.
Four point charges are positioned as such: A(0,1), B(2,1), C(0,0), D(2,0). Charge A = -3 microcoulombs, Charge B = 3 microcoulombs, C = 2 microcoulombs, and D = -2 microcoulombs. What is the net electric field experienced at the origin.
How much potential energy will you have staying at the 4rth floor of the
engineering building?
Note; use your own weight (38 kg), assume that every floor has 8ft distance and 1N = 5.23kg.
Answers must be in terms of “Joules.”
What is Diminishing Marginal utility (DMU)? Explain and illustrate this concept graphically using the curves of total and Marginal utility.
The average amount of money that a depositor of the Second National City
Bank has in an account in $5000 with a standard deviation of $650. A
random sample of 36 accounts is taken. What is the probability that the
average amount of money that these 36 depositors have in their accounts
is
a. Between $4800 and $5300?
b. Less than $ 4650 and Greater than $5250
c. Greater than $4900
Compare the two strings is equal or not....
The "*" and "?" Can treated as a replace for characters
?=is used as replace for 1 character
* = It can be as replace for 1 to length of the character and can also used as a empty string
1st question:
3
Maggi Ma*i
Maggi Ma?gi
Maggi M*?
Answer:
True
True
True
2nd question:
Tree tr*
Plant Pl**
Dance D*ance
Answer:
False
True
True
Write a programe to check the overlapping of one string's suffix with the prefix of another string