The 90 students in a statistics class are categorized by gender and by the year in school. The numbers are listed in the following table:
| Year in School | Freshman | Sophmore | Junior | Senior |
| Gender | ||||
| Male | 1 | 4 | 8 | 17 |
| Female | 23 | 17 | 13 | 7 |
Test the null hypothesis that there is no association between the year in school and the gender using a 1% significance level. Be sure to specify the test statistic with degrees of freedom, the P-value or critical value, and your conclusion. Please no computer software answers! Thank you!
In: Math
In this assignment, students are required to write a report and do a presentation on a new business management practice. They need to analyse the selected Business to come up with answers for the following questions:
• Name and introduction of the Business
• Size of the business and Product Features
• What are the capital sources for the new business and how they are obtained?
• What are the challenges and difficulties that might be expected for the example business? You need to discuss any possible problem such as legal, technological, political, economic, environmental, social and cultural challenges.
• How are the potential risks involved in the process of the example business venture?
• Provide Management practices you will be implementing to minimise or eliminate the problems/issues you have or might have in the future.
• Recommendation
• Conclusion
In: Operations Management
Purpose of Assignment
The purpose of this assignment is to allow the students to
understand and practice the measurement of present value, future
value, and interest rate using
Microsoft® Excel®.
Assignment Steps
Resources: Microsoft® Office® 2013 Accessibility Tutorials, Microsoft® Excel®, Time Value of Money Calculations Template
Calculate the following time value of money problems using Microsoft® Excel®:
If we place $8,592.00 in a savings account paying 7.5
percent interest compounded annually, how much will our account
accrue to in 9.5 years?
What is the present value of $992 to be received in
13.5 years from today if our discount rate is 3.5
percent?
If you bought a stock for $45 dollars and could sell
it fifteen years later for three times what you originally paid.
What was your return on owning this stock?
Suppose you bought a house for $3,250,000 to make it a
nursing home in the future. But you have not committed to the
project and will decide in nine years whether to go forward with it
or sell off the house. If real estate values increase annually at
1.5%, how much can you expect to sell the house for in nine years
if you choose not to proceed with the nursing home
project?
If your daughter wants to earn $215,000 within the
next twenty-three years and the salaries grow at 4.45% per year.
What salary should she start to reach her goal?
In: Finance
A market research firm also wants to pilot test a new line of vehicles among prospective customers. They collect data on attitude ratings (higher scores reflect more liking) for four different car models and find the following results: Toyota Camry (M = 8.2; N = 50), Honda Accord (M= 7.5; N = 50), Ford Focus (M = 4.0; N = 50), and Chevrolet Impala (M=5.7; N = 50). They also calculated the between-group and total sum of squares (SSB = 568.6; SST = 7781.4). Use a one-way ANOVA (where α = .01) to determine if there are significant differences in ratings of cars.
12. Identify the alternative hypothesis (F tests are always nondirectional)
13. List your degrees of freedom (within)
14. List your degrees of freedom (between)
15. List your mean squares between groups
16. List your mean squares within groups
17. List your F test statistic
18. List your critical F value
19. Are there statistically significant differences in ratings among different cars? (Yes/No)
20. Calculate partial eta-squared (η2) for the effect of car type on liking ratings (list as decimal, 0.xx)
21. Calculate Tukey’s HSD
22. Use Tukey’s HSD to determine if the difference in liking ratings between the Toyota Camry and Ford Focus is statistically significant (Yes/No)
You can use the table below to help answer the questions in this scenario
|
Source |
SS |
df |
MS |
F |
|
Between |
||||
|
Within |
||||
|
Total |
In: Statistics and Probability
USING R TO ANSWER QUESTION: Performance Tires plans to engage in direct mail advertising. It is currently in negotiations to purchase a mailing list of the names of people who bought sports cars within the last three years. The owner of the mailing list claims that sales generated by contacting names on the list will more than pay for the cost of using the list. (Typically, a company will not sell its list of contacts, but rather provides the mailing services. For example, the owner of the list would handle addressing and mailing catalogs.) Before it is willing to pay the asking price of $3 per name, the company obtains a sample of 225 names and addresses from the list in order to run a small experiment. It sends a promotional mailing to each of these customers. The data for this exercise show the gross dollar value of the orders produced by this experimental mailing. The company makes a profit of 20% of the gross dollar value of a sale. For example, an order for $100 produces $20 in profit.
c. Describe the appropriate hypotheses and type of test to use. Choose (and justify) an alpha-level for the test. Check whether the sample size condition and the random sample condition are met.
d. Summarize the results of the sample mailing. Use a histogram and appropriate numerical statistics.
e. Summarize the results of the test. Make a recommendation to the management of Performance Tires
|
173.08 |
|
0 |
|
0 |
|
0 |
|
0 |
|
156.84 |
|
0 |
|
136.57 |
|
303.15 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
200.49 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
|
0 |
In: Statistics and Probability
Modify the Movie List 2D program
-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
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]) + ")")
i += 1
print()
def add(movie_list):
name = input("Name: ")
year = input("Year: ")
movie = []
movie.append(name)
movie.append(year)
movie_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")
def display_menu():
print("COMMAND MENU")
print("list - List all movies")
print("add - Add a movie")
print("del - Delete a movie")
print("exit - Exit program")
print()
def main():
movie_list = [["Monty Python and the Holy Grail", 1975],
["On the Waterfront", 1954],
["Cat on a Hot Tin Roof", 1958]]
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 == "exit":
break
else:
print("Not a valid command. Please try again.\n")
print("Bye!")
if __name__ == "__main__":
main()
In: Computer Science
1. An array has an index of [5] at the starting address of 200. It has 3 words per memory cell, determine loc[3],loc[4] and NE. (3 Marks: 1 mark for each)
2. A 2-D array defined as A[10 , 5] requires 4 words of storage space for each element. Calculate the address of A[4,3] given the base address as 250 • If the array is stored in Row-major form • If the array is stored in Column-major form
3. Write a method for the following using the data structure Linked List. void append(Node list1, Node list2) If the list1 is {22, 33, 44, 55} and list2 is {66, 77, 88, 99} then append(list1, list2) will change list1 to {22, 33, 44, 55, 66, 77, 88, 99}. (5 Marks: 1mark for each correct step)
4. Write a method for the following using the data structure Linked List. int sum(Node list) If the list is {25, 45, 65, 85} then sum(list) will return 220. (5 Marks: 1mark for each correct step)
5. Trace the following code showing the contents of the Linked List L after each call L.add(50); L.add(60); L.addFirst(10); L.addLast(100); L.set(1, 20); L.remove(1); L.remove(2); L.removeFirst(); L.removeLast(); (10 Marks: 1 mark for each correct answer) L.addFirst(10);
6. Compare and contrast the following data structures. • Array and Linked List
In: Computer Science
Can someone please convert this java code to C code?
| import java.util.LinkedList; | |
| import java.util.List; | |
| public class Phase1 { | |
| /* Translates the MAL instruction to 1-3 TAL instructions | |
| * and returns the TAL instructions in a list | |
| * | |
| * mals: input program as a list of Instruction objects | |
| * | |
| * returns a list of TAL instructions (should be same size or longer than input list) | |
| */ | |
| public static List<Instruction> temp = new LinkedList<>(); | |
| public static List<Instruction> mal_to_tal(List<Instruction> mals) { | |
| for (int i = 0; i < mals.size(); i++) { | |
| Instruction current = mals.get(i); | |
| int rs = current.rs; | |
| int rd = current.rd; | |
| int rt = current.rt; | |
| int imm = current.immediate; | |
| int jumpAddress = current.jump_address; | |
| int shiftAmount = current.shift_amount; | |
| String label = current.label; | |
| String branchLabel = current.branch_label; | |
| int upperImm = imm >>> 16; | |
| int lowerImm = imm & 0xFFFF; | |
| int t1 = 0; | |
| int t2 = 0; | |
| int t3 = 0; | |
| int at = 0; | |
| if ((current.instruction_id == Instruction.ID.addiu | |
| || current.instruction_id == Instruction.ID.ori) && (imm > 65535)) { | |
| at = 1; | |
| temp.add(InstructionFactory.CreateLui(at, upperImm, label)); | |
| temp.add(InstructionFactory.CreateOri(at, at, lowerImm)); | |
| if (current.instruction_id == Instruction.ID.addiu) temp.add(InstructionFactory.CreateAddu(rt, rs, at)); | |
| else temp.add(InstructionFactory.CreateOr(rt, rs, at)); | |
| } | |
| else if (current.instruction_id == Instruction.ID.blt) { | |
| //t1 = rt, t2 = rs | |
| if (rt > rs) { | |
| at = 1; | |
| } | |
| temp.add(InstructionFactory.CreateSlt(at, rt, rs)); | |
| temp.add(InstructionFactory.CreateBne(at, 0, branchLabel)); | |
| } | |
| else if (current.instruction_id == Instruction.ID.bge) { | |
| at = 1; | |
| temp.add(InstructionFactory.CreateSlt(at, rt, rs)); | |
| temp.add(InstructionFactory.CreateBeq(at,0, branchLabel)); | |
| } | |
| else temp.add(current); | |
| } | |
| return temp; | |
| } | |
|
} to C code: void mal_to_tal(structArrayList *mals, structArrayList *tals) { } |
In: Computer Science
Using basic Python
2. Given the following dictionary:
speed ={'jan':47, 'feb':52, 'march':47, 'April':44, 'May':52, 'June':53, 'july':54, 'Aug':44, 'Sept':54}
Get all values from the dictionary and add it to a new list called speedList, but don’t add duplicates values to the new list.
Your code should print out:
speedList [47, 52, 44, 53, 54]
3. Given the following list of numbers:
numberList = [10, 20, 33, 46, 55, 61, 70, 88, 95]
First iterate the list and print only those numbers, which are divisible of 5. Then iterate the list and print only those numbers that are odd.
Your code should print out:
Numbers from numberList that are only divisible of 5 are:
10
20
55
70
95
Numbers from numList that are odd are:
33
55
61
95
4. For the given list:
item_list= [ 2, 6, 13, 17, 22, 25, 29, 31, 38, 42, 47, 55, 59, 63, 68, 71, 77, 84, 86, 90, 99]
Write python code to do a binary search over the given list, where the search value is input by a user (positive integers from 1 to 100 only). Print out the results if the search found the number or not.
HINT: Our author provided the pseudocode in Figure 3.18 from Chapter 3 of our text for solving this problem.
In: Computer Science
void append(Node list1, Node list2)
If the list1 is {22, 33, 44, 55} and list2 is {66, 77, 88, 99} then append(list1, list2) will change list1 to {22, 33, 44, 55, 66, 77, 88, 99}. (5 Marks: 1mark for each correct step)
int sum(Node list)
If the list is {25, 45, 65, 85} then sum(list) will return 220. (5 Marks: 1mark for each correct step)
L.add(50);
L.add(60);
L.addFirst(10);
L.addLast(100);
L.set(1, 20);
L.remove(1);
L.remove(2);
L.removeFirst();
L.removeLast(); (10 Marks: 1 mark for each correct answer)
L.addFirst(10);
In: Computer Science