C#
To write a program using a stack and a program using a queue.
Code a class encapsulating a queue of foods using a circular array. A food has the following attributes: name, the number of calories per serving and the number of servings per container. Limit your queue to 20 food items. In addition to writing the enqueue, dequeue, and peek methods, you will write two more methods: a method that returns the average calories per serving of all the foods in the queue; a method that returns the food items with the highest total calories (ie: number of calories per serving * servings per container). Write a program to test your queue with all these methods
In: Computer Science
A car insurance officer can handle up to 2 claims each working day without significant delays. The average number of claims per working day is 1.7. Assume the number of claims can be modeled by a Poisson distribution.
c. Find the mean and standard deviation for the number of claims per working day.
In: Statistics and Probability
In: Statistics and Probability
An online test allows a maximum of 10 attempts. Abdulllah will
attempt the test until he
passes it. In each attempt his chance of passing the test is 40%.
Find the following:
a) What is the probability that he is able to pass the
test?
b) What is the expected number of attempts to pass the test?
c) What is the variance of number of attempts?
d) Given that he passed the test, what is the probability that he
passed in less than 5 attempts?
e) Given that he passed the test, what is the expected number of
attempts?
In: Statistics and Probability
An insurance company is considering offering fire insurance to customers in a certain state. After examining thousands of records of insurance claims in the area, they have come up with the following information:
| Payout | Number of Claims |
| $58,971 | 22 |
| 28,117 | 602 |
| 0 | 2,972 |
First convert the table into a probability distribution by dividing each number in the "Claims" column by the total number of claims. Take probability calculations to 3 decimal places.
Now, let X be the expected payout. Find E(X), the expected value of X, to two decimal places.
In: Statistics and Probability
55. Best Electronics Inc. offers a “no hassle” returns policy.
The daily number of customers
returning items follows the normal distribution. The mean number of
customers returning
items is 10.3 per day and the standard deviation is 2.25 per
day.
a. For any day, what is the probability that eight or fewer
customers returned items?
b. For any day, what is the probability that the number of
customers returning items is
between 12 and 14?
c. Is there any chance of a day with no customer returns?
I need helping showing this and computing this in excel
In: Statistics and Probability
Suppose you flip a biased coin (that lands heads with probability p) until 2 heads appear. Let X be the number of flips needed for this two happen. Let Y be the number of flips needed for the first head to appear. Find a general expression for the condition probability mass function pY |X(i|n) when n ≥ 2. Interpret your answer, i.e., if the number of flips required for 2 heads to appear is n, what can you say about the arrival of the first head?
In: Statistics and Probability
Follow the 3 steps to get the answers of the following questions:
a) What is the probability that the price of the Economics text book will not rise over the next semester?
b) What is the probability that neither book price will rise?
c) Given that the price of the Accounting text book does not rise, what is the probability that the price of the Economics text book will rise?
d) Give your opinion and justify the answer that whether price rises for two text books are mutually exclusive or not?
9. Differentiate between Discrete Random Variable and Continuous Random Variable?
10. Classify the following in either Discrete Random Variable or Continuous Random Variable and state the reason for your answer:
11. What is the probability distribution of a random variable when the coin is tossed twice describing the number of heads that turn up? Show all the steps.
12. What are the four conditions for Binomial Experiment?
13. According to the records, 30% of the businesses in US does sponsor in large scale. Just this morning 10 businesses sponsored.
In: Statistics and Probability
Air is contained in a piston-cylinder. Initially, the 0.35 kg of air is at 2 MPa and 350°C. The air is first expanded isothermally to 500 kPa, then compressed polytropically with a polytropic exponent of 1.25 to the initial pressure, and finally compressed at the constant pressure to the initial state. Calculate the net heat transfer during the polytropic process in kJ assuming constant specific heats at 300 K (with 3 significant figures).
In: Other
10 kg of air occupying a cylinder volume of 0.28 m3 is allowed
to expand isentropically
behind a piston to a pressure of 30 bar. The air is then heated at
a constant volume. Finally, the
air is cooled at a constant pressure back to its initial
conditions. The initial pressure is 60 bar.
Calculate the change in entropy, the net work done and the net heat
flow. Sketch the cycle on
the p‐v and T‐s diagrams.
In: Physics