Suppose that in a day, the probability of a car agent’'s not closing any deal is 0.35. on the other hand, the probability that he/she can close one deal is 0.3; two deals, 0.25; and three deals, 0.1. find the agent’s expected number of closed deals in a day and determine the variance and standard deviation.
In a rectangular coordinate system a positive point charge q = +6.00 nC is placed at point x = +1.50 m, y = 0 m, and an identical charge is placed at x = -1.50 m, y = 0 m, Find the x- and y-components, the magnitude, and the direction of the electric field at x = 0, y = 0.200 m.
Create a function to print out all the data for the Student. Remember to prototype this function and use outside of a class function.
Write a program to calculate the correct packaging system for chocolates. A user has the option to put it in a box, or put it in a box inside a container. A box of chocolate bars can hold 30 bars and a container can hold 94 boxes of chocolates. Write a program that prompts the user to enter the total number of chocolate bars. The program then outputs the number of boxes and/or the number of containers to ship the chocolates. Note that each box must contain the specified number of chocolates each container must contain the specified number of boxes. If the last box of chocolates contains less than the number of specified chocolates you can discard it, and output the number of leftover chocolate. Similarly, if the last container contains less than the number of specified boxes, you can discard it, and output
the number of leftover boxes.
Five hundred tickets will be sold and these will be raffled during the town fiesta. One of these tickets will win Php 3,000 and the rest will win nothing. What will be the expected outcome and variance of your gain if you will buy one of the tickets?
In a group of 35 ex-athletes, 17 play golf, 20 go cycling, and 12 do yoga. Exactly 8 play golf and go cycling, 8 play golf and do yoga, 7 go cycling and do yoga, and 4 do all three activities. How many of the ex-athletes do none of these activities?
1. Write a C++ program that prompts the user for the fuel quantity and the fuel price
per litr
Task:1
A single point has two coordinates p1(x,y). Create a class name Point with a length 2 array asit's private data member. Initialize the array using constructor. Overload array subscript operator ‘[ ]’ for if I have to access the object's array at a particular index from main function
like this.
Point p1(1, 1);
cout << p1[0] << " " << p1[1] << endl;
Task#02:
Copy paste the same task and do consider doing it in dynamic memory instead of static. Plus alter the subscript overloaded function for if I have to make changes to the class array from the main function. Hint: By reference
Point p2(3, 3);
cout << p2[0] << " " << p2[1] << endl;
p2[0] = 7;
p2[1] = 9;
cout << p2[0] << " " << p2[1] << endl;
The precipitate was filtered, washed free of precipitating agent, dried, and weighed, and 0.4114 g was recovered. Calculate the percentage of Hg2Cl2 in the sample.
Digit 9