Write a program to design a class complex to represent negative numbers. The negative class
should use an external function (use it as friend function) to add two negative numbers. The
function should return an object of type negative representing the sum of two negative
numbers.
1.3. A local farmer decides to sell his produce at the farmer’s market. Every Sunday he uses his own fuel to drive to the market which is 300km away. This costs him R650.00 per week. He sells 50 boxes of fruit for R250.00 and 100 boxes of fruit for R350.00.
a. Given the following simultaneous equations:
y=2x2+3x+2
And
y=x2 +2x+8
Solve for x and y.
Medical Literature tells us that our blood is mainly composed of red and white corpuscles and a normal human body average 7250/mm3 of white blood cell counts.If a sample of 15 individuals chosen at random from a certain place has an average of 4850/mm3 with a standard deviation of 2500/mm3, would you say that the people in that place have low white blood cell counts?
A.Formulate the null and alternative hypothesis in sentence and in symbol.
B.Determine what test statistics to use.
C.Compute the test statistics.
Write a user defined method named getMark that can be used to get a valid mark from the user.
Your method must continuously ask the user for a mark, until a valid mark is entered (valid marks
are between 0 and 100). If a user enters an invalid mark, display an error message before asking
for a valid mark to be entered. The method must return the valid value to the calling program.
Write a user defined method named isPass that can be used to determine whether a mark is a
pass mark (greater or equal to 50). The method must take as input a mark, and return a boolean,
indicating whether the mark was a pass mark.
Write a program that reads in 5 marks by using the getMark method to ensure that valid marks are
processed. You need to calculate the sum and the average of the marks. Your program must also
use the isPass method to determine the number of pass marks entered. When the 5 marks have
been processed you need to display the sum, average and number of passes (from these marks).
Medical literature tells us that our blood is mainly composed of red and white blood cells corpuscles and a normal human body must average 7250/mm3 of white blood cell counts.If a sample of 15 individuals chosen at random from a certain place has an average of 4850/mm3 with a standard deviation of 2500/mm3, would you say that the people in that place have low white blood cell counts?
A.Formulate the null and alternative hypothesis in sentence and in symbol.
B.Determine what test statistics to use.
C.Compute the test statistics.
With the help of appropriate energy level diagram, explain the working of a He-Ne laser. A He-Ne laser emits a beam of diameter 2103m and wavelength 630 nm. It is directed towards an aeroplane flying at a height of 11 km. Calculate the diameter of the light patch produced on the surface of the aeroplan
Determine the ppm of K+ ions in an aqueous solution, given that there are 0.300 g of KCl in 1.50 L of water. Assume the density of water is 1.00 g mL-1 .
Determine all possible ratios for the following balanced chemical equations.
a) 4Al(s) + 3O2(g)→2Al2O3(s)
b) 3Fe(s) + 4H2O(l) → Fe3O4(s) + 4H2(g)
There are 400kf/min of water being handled by a pump. The lift us firm 20-m deep well and the delivery velocity ks 15m/s. Find (a) the change in potential energy, (b) kinetic energy, (c) the required power of the pumping unit; g= 9.81m/s²