a) Write a simple program to store some Employee objects in an ArrayList. Then display all the details of the objects in the ArrayList. Use the JOptionPane class for output.
b) Use the JOptionPane class to display only the name and surname of employees whose surname starts with the letter ‘M’. (Ensure that you have at least 2 such employees in the list).
Advanced: modify this functionality so that the start letter is not hard-coded, but the user can specify any letter, using the JOptionPane class for input.
c) Remove all employees whose salary is less than or equal to R5000. Then, using the JOptionPane class, display all the details of the remaining objects in the list.
d) Try to sort the contents of the list in alphabetical order of surname. Then, using the JOptionPane class, display all the details of the objects in the list.
e) Try to sort the contents of the list in ascending order of salary. Then, using the JOptionPane class, display all the details of the objects in the list.
Within the cylinders of a car’s engine, the hydrocarbon octane (C8H18), one of many components of gasoline, mixes with oxygen from the air and burns to form carbon dioxide and water vapor. Write a balanced equation for this reaction.
(y+z)p+(z+x)q=x+y
Solve the following first order linear equations
1)dy/dx=e^2x+3y
2)xy×dy/dx=2(y+3)
3)(1+x^2).dy/dx-xy(1+y)=0
4)sinx/1+y.dy/dx=cosx
5)cos^2x.dy/dx=y-3
1. How do you determine the probability of a random variable? 2. How do you construct the bar graph of a probability distribution?
Determine whether the given values can serve as the values of a probability distribution of the random variable X that can take only the values 1, 2, 3, and 4. Write PD if it is a probability distribution and DPD if it is not on the space provided. ___________ 1. ___________ 2. ____________ 3. ____________ 4. P(1) = 0.08, P(2) = 0.12, P(3) = 1.03 ____________ 5. P(1) = 10 33 , P(2) = 1 3 , P(3) = 12 33 X 1 5 8 7 9 P(X) 1/3 1/3 1/3 1/3 1/3 X 0 2 4 6 8 P(X) 1/6 1/6 1/3 1/4 1/8 X 1 3 5 7 P(X) 0.35 0.25 0.22 0.12
The number of inquiries received per day by the Office of
Admissions in a certain university is shown below. Find the variance
and standard deviation.
Number of inquiries: 22, 23,24,25,26,27
Probability: 0.08, 0.19, 0.36, 0.25, 0.07, 0.05
Find the price for good Z and the quantity supply for good X (show all the calculations) if: (i) The elasticity of supply is equal to 1 and the price increases from $40 to $50.
(ii) If the elasticity of demand is 0.5 and the quantity demanded decreases from 95.000 to 85.000.
(iii) Draw the graph and indicate the equilibrium price and quantity.
Price per Tonne ($) Quantity Demanded Quantity Supplied
40 150 80
50 120 X
60 110 110
80 95 115
Z 85 120
Consider a business whose payroll processing functions are poorly organized, poorly performed, and perpetually late. Management suggests that the company chooses to employ RPA in payroll processing to increase efficiency and reduce human errors. In view of the analytics mindset, indicate the questions you would ask, the data you would collect, and the analysis you would perform to determine the appropriateness of implementing management’s suggestion. Write a paragraph response.
Find four examples of data visualizations used in news stories or blogs. two examples should be a positive example of the design principles; the other two examples should be a poor demonstration of the design principles. Provide the link to each example and discuss the principles utilized or violated for each visualization.