Write a program in Java that asks users to enter a series of marks (one at a time) until a signal is entered to stop. Have your program ensure that each mark entered is between 0 and 100. When done, output the number of marks entered and the average of all marks. Also output the highest mark and the lowest mark, and the range between the highest and lowest mark.
In: Computer Science
Household Income in Maryland:
According to Money magazine, Maryland had the highest median annual household income of an state in 2018 at $75,847 (Time.com website). Assume that annual household income in Maryland follows a normal distribution with a median of $75,847 and a standard deviation of $33,800.
a. What is the probability that a household in Maryland has an annual income of $100,000 or more?
b. What is the probability that a household in Maryland has an annual income of $40,000 or less?
c. What is the probability that a household in Maryland has an annual income between $50,000 and $70,000?
d. What is the annual income of a household in the 90th percentile of annual household income in Maryland?
In: Statistics and Probability
The mean cost of domestic airfares in the United States rose to an all-time high of $380 per ticket. Airfares were based on the total ticket value, which consisted of the price charged by the airlines plus any additional taxes and fees. Assume domestic airfares are normally distributed with a standard deviation of $115.
a. What is the probability that a domestic airfare is $555 or more (to 4 decimals)?
b. What is the probability that a domestic airfare is $250 or less (to 4 decimals)?
c. What if the probability that a domestic airfare is between $320 and $490 (to 4 decimals)?
d. What is the cost for the 5% highest domestic airfares? (rounded to nearest dollar)
In: Statistics and Probability
Possible outcomes for three investment alternatives and their
probabilities of occurrence are given
next.
| Alternative 1 | Alternative 2 | Alternative 3 | ||||||||||||||||||
| Outcomes | Probability | Outcomes | Probability | Outcomes | Probability | |||||||||||||||
| Failure | 60 | 0.40 | 80 | 0.20 | 70 | 0.30 | ||||||||||||||
| Acceptable | 85 | 0.40 | 150 | 0.40 | 275 | 0.60 | ||||||||||||||
| Successful | 140 | 0.20 | 220 | 0.40 | 410 | 0.10 | ||||||||||||||
Using the coefficient of variation, rank the three alternatives in
terms of risk from lowest to highest. (Do not round
intermediate calculations. Round your answers to 3 decimal
places.)
| Coefficient of Variation | Rank | |
| Alternative 1 | ||
| Alternative 2 | ||
| Alternative 3 |
In: Finance
3. Solve using probabilistic dynamic programming: I would like to sell my computer to the highest bidder. I have studied the market, and concluded that I am likely to receive three types of offers: an offer of $200 with probability 2/7, and offer of $300 with probability 4/7, and an offer of $400 with probability 1/7. I will advertise my computer for up to three consecutive days. At the end of each of the three days, I will decide whether or not to accept the best offer made that day. What is the optimum strategy for maximizing the expected sale price for my computer? What is this expected sale price?
In: Advanced Math
The mean cost of domestic airfares in the United States rose to an all-time high of $380 per ticket. Airfares were based on the total ticket value, which consisted of the price charged by the airlines plus any additional taxes and fees. Assume domestic airfares are normally distributed with a standard deviation of $120.
a. What is the probability that a domestic airfare is $530 or more (to 4 decimals)?
b. What is the probability that a domestic airfare is $260 or less (to 4 decimals)?
c. What if the probability that a domestic airfare is between $310 and $470 (to 4 decimals)?
d. What is the cost for the 3% highest domestic airfares? (rounded to nearest dollar)
In: Finance
(a) Find the probability of selecting a prime number
(b) Find the probability of selecting either a prime number or an odd number
© Find the probability of selecting a square number or an even number. A square number is a number that is derived when a number is multiplied by itself. For example, 100 is a square number (because 10x10=100)
(d) Find the probability of selecting a number that is even given that it is divisible by 3
|
e) Find the probability of selecting an odd number given that it is a square number. |
In: Statistics and Probability
The loaded cab of an elevator has a mass of 3.6 × 103 kg and moves 216 m up the shaft in 17 s at constant speed. At what average rate does the force from the cable do work on the cab?
In: Physics
Why was the development of Prozac considered to be a seminal moment in the history of psychopharmacology? How is it designed to work? Describe the neurotransmitter model of mood regulation. Name at least two concerns raised about a potentially consistently successful mood elevator.
In: Psychology
PYTHON:
Write the code to play a card game called Battle. Two players each have a card deck consisting of the following cards: two, three, four, … jack, queen, king, ace, in increasing order. One card deck could be represented by a list such as:
cardsPlayer1 = ["two", "three", "four"..."jack", "queen", "king", "ace"]
Both players have a card randomly selected. When a card is selected, remove it from the player’s deck. The player that plays the higher of the two cards wins a point for that round. If both cards have the same value, neither receives a point.
Use random.randint() with the current length of the list until all 13 cards have been played.
Display each card played in each round and the current scores. Print the final scores and pronounce the one with the highest score as the winner. Allow the user of the game to continue as long as the user wishes.
Ignore all notion of suits in this game.
In: Computer Science