Questions
If x is a binomial random variable, compute P(x) for each of the following cases: (a)  P(x≤5),n=9,p=0.7P(x≤5),n=9,p=0.7...

If x is a binomial random variable, compute P(x) for each of the following cases:

(a)  P(x≤5),n=9,p=0.7P(x≤5),n=9,p=0.7


(b)  P(x>1),n=9,p=0.1P(x>1),n=9,p=0.1


(c)  P(x<3),n=5,p=0.6P(x<3),n=5,p=0.6


(d)  P(x≥1),n=6,p=0.9P(x≥1),n=6,p=0.9


In: Math

AWS(Amazon Web Services): As an organization grows, what are some aspects to consider with regard to...

AWS(Amazon Web Services):

As an organization grows, what are some aspects to consider with regard to EC2 Instances, EBS, and Elastic IPs if any (i.e. aspects to consider: architectural, performance, cost, etc.)?

In: Computer Science

MAX Z = 2x1 + 8x2 + 4x3 subject to 2x1 + 3x2 <= 8 2x2...

MAX Z = 2x1 + 8x2 + 4x3
subject to
2x1 + 3x2 <= 8
2x2 + 5x3 <= 12
3x1 + x2 + 4x3 <= 15
x1 + x3 = 11
and x1,x2,x3 >= 0

apply the Dual Simplex Method to recover feasibility.

In: Operations Management

Each of the following statements represents a decision made by the accountant of Growth Industries: a....

Each of the following statements represents a decision made by the accountant of Growth
Industries:
a. A tornado destroyed $200,000 in uninsured inventory. This loss is included in the cost of goods sold.
b. Land was purchased 10 years ago for $50,000. The accountant adjusts the land account to $100,000, which is the estimated current value.
c. The cost of machinery and equipment is charged to a fixed asset account. The machinery and equipment will be expensed over the period of use.
d. The value of equipment increased this year, so no depreciation of equipment was recorded this year.
e. During this year, inventory that cost $5,000 was stolen by employees. This loss has been included in the cost of good sold for the financial statements. The total amount of the cost of goods sold was $1 million.
f. The president of the company, who owns the business, used company funds to buy a car for personal use. The car was recorded on the company’s books.
Required: state whether you agree or disagree with each decision.

In: Finance

Thinking about the material presented this week, what are the implications for the future with which...

Thinking about the material presented this week, what are the implications for the future with which business should be concerned today? What are your ideas for overcoming these future issues? Discuss strategies to tackle the resistance to change you might experience.

In: Operations Management

Think of at least one example for each of the following topics (OR AS MANY AS...

Think of at least one example for each of the following topics (OR AS MANY AS YOU CAN more than 5 is ideal). The example can be from a former job, internship, class project, volunteer activity, etc. When formulating an example, think STAR - Situation, Task, Action, Results.

Situation Describe a specific situation that you were in

Task Describe the task that needed to be accomplished

Action Describe the actions/steps that you took

Results Describe the outcome and your accomplishments

Dependability

The Situation:

Task:

Action:

Results

In: Psychology

1. Consider two countries: Victoria and Senza. Suppose that each country makes only two goods: lingerie...

1. Consider two countries: Victoria and Senza. Suppose that each country makes only two goods: lingerie and mathematics textbooks. In a single year, Victoria can use all of its resources to produce either 1,000 tons of lingerie or 2,000 tons of textbooks. In the same period, Senza can use its resources to produce either 500 tons of lingerie or 1,500 tons of textbooks. Use this information to respond to the following questions. In each case, explain your answer.

a) Which country has comparative advantage in textbooks? In lingerie? (15%)
b) Suppose that, prior to trade, Victoria makes 500 tons of lingerie and 1,000 tons of textbooks, while Senza makes 250 tons of lingerie and 750 tons of textbooks.
If they trade, and Senza gives Victoria 300 tons of textbooks in exchange for 125 tons of lingerie, then would this constitute an improvement (i.e. could each country consume beyond its Production Possibilities Frontier)?

In: Economics

You are writing a billing program that adds up the items a user enters. Your program...

You are writing a billing program that adds up the items a user enters. Your program should use a loop and prompt the user for the item number for each item in inventory to add to the bill. (You can ask the user for the number of items you will enter and use a counter controlled loop or a sentinel controlled loop that has a stop number. Either way is fine.) Here is the table of items in inventory:

Item Value

1 209.00
2 129.50
3 118.00
4 232.00

(So if your program starts asking the user for the items they are purchasing and they enter item 2 with quantity 2, and item 3 with quantity 1. The bill should be 377.00. On the next run if your program asks the user for items in the loop and they give enter each item with quantity of 1. The bill should be 688.50

[You must use an IF or IF/Else Structure to look up the item value for the item number they give or you are missing an objective on this assignment.] Use Java and NetBeans *.0 version to solve this. Must use a simple loop and nested if statement.

In: Computer Science

Theoretically, once a trader enters into a forward rate agreement (FRA), the interest locked at the...

Theoretically, once a trader enters into a forward rate agreement (FRA), the interest locked at the forward rate. Do you agree? Please prove your answer.

In: Finance

Create a driver class to do the following: a. Read data from the given file BankData.data...

Create a driver class to do the following:

a.

Read data from the given file BankData.data and create and array of BankAccount Objects

The order in the file is first name, last name, id, account number, balance. Note that account

name consists of both first and last name

b.

Print the array (without account id) the account balance must

show only 2 decimal digits. You will need to do some string processing.

c.

Find the account with largest balance and print it

d.

Find the account with the smallest balance and print it.

e.

Determine if there are duplicate accounts in the array. If there are then set the duplicate account

name to XXXX XXXX and rest of the fields to 0. Note it’s hard to “delete” elements from an array.

Or add new accounts if there is no room in the array. If duplicate(s) are found, print the array.

Main.cpp

#include <iostream>
#include <fstream>
#include <string>
#include //your header file

using namespace std;
const int SIZE = 8;
void fillArray (ifstream &input,BankAccount accountsArray[]);
int largest(BankAccount accountsArray[]);
int smallest(BankAccount accountsArray[]);
void printArray(BankAccount accountsArray[]);
int main() {

   //open file
   //fill accounts array
   //print array
   //find largest
   //find smallest
   //find duplicates and print if necessary
BankAccount accountsArray[SIZE];

    fillArray(input,accountsArray);
    printArray(accountsArray);
    cout<<"Largest Balance: "<<endl;
    cout<<accountsArray[largest(accountsArray)].toString()<<endl;
    cout<<"Smallest Balance :"<<endl;
    cout<<accountsArray[smallest(accountsArray)].toString()<<endl;
}
}
void fillArray (ifstream &input,BankAccount accountsArray[]){

}

int largest(BankAccount accountsArray[]){
//returns index of largest account balance
}
int smallest(BankAccount accountsArray[]){
//returns index of smallest

}
BankAccount removeDuplicate(BankAccount account1, BankAccount account2){

return (account1.equals(account2));

}
void printArray(BankAccount accountsArray[]){
   cout<<" FAVORITE BANK - CUSTOMER DETAILS "<<endl;
   cout<<" --------------------------------"<<endl;
//print array using to string method

}

BankData.data

Matilda Patel 453456 1232 -4.00 
Fernando Diaz 323468 1234  250.0
Vai vu        432657 1240  987.56
Howard Chen   234129 1236  194.56
Vai vu        432657 1240  -888987.56
Sugata Misra  987654 1238  10004.8
Fernando Diaz 323468 1234 8474.0
Lily Zhaou    786534 1242  001.98

In: Computer Science

In well-governed companies, a sense of accountability and ethical leadership create a culture that places organizational...

In well-governed companies, a sense of accountability and ethical leadership create a culture that places organizational ethics above all else. What role does organizational culture play in preventing financial shenanigans from being used to manage earnings?

In: Finance

Could someone please tell me what corrections I should make to this code. (Python) Here are...

Could someone please tell me what corrections I should make to this code. (Python)

Here are the instructions.

  • Modify the program so it contains four columns: name, year, price and rating (G,PG,R…)
  • Enhance the program so it provides a find by rating function that lists all of the movies that have a specified rating

I can't get the find function to work and I have no idea how to even go about it. For example, when type in 'find' and I enter the rating, I'm always getting an error. I need help.


def list(movie_list):
if len(movie_list) == 0:
print("There are no movies in the list.\n")
return
else:
i = 1
for row in movie_list:
print(str(i) + ". " + row[0]+ " (" + str(row[1]) + ")"+","+ "$"+str(row[2])+","+str(row[3]))
i += 1
print()

def add(movie_list):
name = input("Name: ")
year = input("Year: ")
price = int(input("Price:"))#price
rating =input("Rating:")
movie = []
movie.append(name)
movie.append(year)
movie.append(price)#adding price to the movie list
movie.append(rating)#adding rating to the movie list
movie_list.append(movie)
rating_list.append(movie)
print(movie[0] + " was added.\n")   

def delete(movie_list):
number = int(input("Number: "))
if number < 1 or number > len(movie_list):
print("Invalid movie number.\n")
else:
movie = movie_list.pop(number-1)
print(movie[0] + " was deleted.\n")
#find by rating function
def find_by_rating(movie_list,rating):
if len(movie_list)==0:
print("Find")
return
else:
movie_list=[]
for i in movie_list:
if i[3]==rating:
movie_list.append(i[0])
if len(1)==0:
print("No movies are present with given rating")
else:
print("Movies:")
for i in movie_list:
print(i)
  
  
def display_menu():
print("COMMAND MENU")
print("list - List all movies")
print("add - Add a movie")
print("del - Delete a movie")
print("find- find movie by rating")
print("exit - Exit program")
print()

def main():
movie_list = [["Matrix",1999,9.75,"R"],
["Under the Tuscan",2003,4.99,"PG"],
["V for Vendetta", 2005,14.99,"R"]]

display_menu()
  
while True:
command = input("Command: ")
if command == "list":
list(movie_list)
elif command == "add":
add(movie_list)
elif command == "del":
delete(movie_list)
elif command == "find": #added find command
rating=input("Enter rating:")#taking the rating
find_by_rating(movie_list,rating)#the call
elif command == "exit":
break
else:
print("Not a valid command. Please try again.\n")
print("Bye!")

if __name__ == "__main__":
main()

In: Computer Science

The original Occupational and Safety Health Act was passed to correct the large n umber of...

The original Occupational and Safety Health Act was passed to correct the large n umber of unsafe conditions in the workplace. There is ample evidence that the Act has reduced injuries and deaths in major injuries. Today's workplace is evolving and is very different than those of 50 years ago. In this unit's discussion board, give your opinion on the changes we see in employment and in the nature of work that may impact how we look at OSHA today. What new conditions should OSHA address that may not have been part of the original thought? Does today's workforce, for example, experience more separation due to remote worker options? If some emotional or psychological issues arise, should OSHA address those?

In: Operations Management

West Corp. issued 25-year bonds two years ago at a coupon rate of 5.3 percent. The...

West Corp. issued 25-year bonds two years ago at a coupon rate of 5.3 percent. The bonds make semiannual payments. If these bonds currently sell for 105 percent of par value, what is the YTM? Please show work/steps and formula used ( do not solely use calculator to show work). Thank you

In: Finance

Write exactly 3 sentences. Question: Before they introduced streaming services, how did Netflix use innovation to...

Write exactly 3 sentences.

Question: Before they introduced streaming services, how did Netflix use innovation to gain a competitive advantage over its Blockbuster?

In: Operations Management