The neighborhood of a vertex in a graph consists of the vertex itself, together with all vertices that are connected to it by an edge. Each graph has a variable xi associated with the i-th vertex, and the vertex has a known value that is equal to the sum of the variables for all neighborhood vertices. Start with a graph with 5 vertices forming a pentagon, with edges joining vertices 1 and 2, 2 and 3, 3 and 4, 4 and 5, and 5 and 1. Then draw an edge joining vertices 2 and 4, and an edge joining vertices 2 and 5. The known values at vertices 1 through 5 are, respectively, 2, 1, −1, 3, and 5.
(a) Find the augmented matrix for the system of equations satisfied by x1, x2, x3, x4, x5.
In: Advanced Math
This is a python question.
Write a function mult_table(n) that consumes a natural number n and returns the n+1 by n+1 multiplication table (where each entry in the inner list is equal to the product of which list it is and the inner list position number, or in other words, the product of the row and column numbers). Use accumulative recursion.
def mult_table(n)
'''
Returns the n+1 by n+1 multiplication table
mult_table: Nat => (listof (listof Nat))
Examples:
mult_table(0) => [[0]]
mult_table(1) => [[0, 0],
[0, 1]]
mult_table(2) => [[0, 0, 0],
[0, 1, 2],
[0, 2, 4]]
mult_table(5) => [[0, 0, 0, 0, 0, 0],
[0, 1, 2, 3, 4, 5],
[0, 2, 4, 6, 8, 10],
[0, 3, 6, 9, 12, 15],
[0, 4, 8, 12, 16, 20],
[0, 5, 10, 15, 20, 25]]
'''
No loops! Only accumulative recursion can be used!
In: Computer Science
| mpg | cyl | disp | hp | drat | wt | qsec | vs | am | gear | carb | |
| Mazda RX4 | 21 | 6 | 160 | 110 | 3.9 | 2.62 | 16.46 | 0 | Manual | 4 | 4 |
| Mazda RX4 Wag | 21 | 6 | 160 | 110 | 3.9 | 2.875 | 17.02 | 0 | Manual | 4 | 4 |
| Datsun 710 | 22.8 | 4 | 108 | 93 | 3.85 | 2.32 | 18.61 | 1 | Manual | 4 | 1 |
| Hornet 4 Drive | 21.4 | 6 | 258 | 110 | 3.08 | 3.215 | 19.44 | 1 | Automatic | 3 | 1 |
| Hornet Sportabout | 18.7 | 8 | 360 | 175 | 3.15 | 3.44 | 17.02 | 0 | Automatic | 3 | 2 |
| Valiant | 18.1 | 6 | 225 | 105 | 2.76 | 3.46 | 20.22 | 1 | Automatic | 3 | 1 |
| Duster 360 | 14.3 | 8 | 360 | 245 | 3.21 | 3.57 | 15.84 | 0 | Automatic | 3 | 4 |
| Merc 240D | 24.4 | 4 | 146.7 | 62 | 3.69 | 3.19 | 20 | 1 | Automatic | 4 | 2 |
| Merc 230 | 22.8 | 4 | 140.8 | 95 | 3.92 | 3.15 | 22.9 | 1 | Automatic | 4 | 2 |
| Merc 280 | 19.2 | 6 | 167.6 | 123 | 3.92 | 3.44 | 18.3 | 1 | Automatic | 4 | 4 |
| Merc 280C | 17.8 | 6 | 167.6 | 123 | 3.92 | 3.44 | 18.9 | 1 | Automatic | 4 | 4 |
| Merc 450SE | 16.4 | 8 | 275.8 | 180 | 3.07 | 4.07 | 17.4 | 0 | Automatic | 3 | 3 |
| Merc 450SL | 17.3 | 8 | 275.8 | 180 | 3.07 | 3.73 | 17.6 | 0 | Automatic | 3 | 3 |
| Merc 450SLC | 15.2 | 8 | 275.8 | 180 | 3.07 | 3.78 | 18 | 0 | Automatic | 3 | 3 |
| Cadillac Fleetwood | 10.4 | 8 | 472 | 205 | 2.93 | 5.25 | 17.98 | 0 | Automatic | 3 | 4 |
| Lincoln Continental | 10.4 | 8 | 460 | 215 | 3 | 5.424 | 17.82 | 0 | Automatic | 3 | 4 |
| Chrysler Imperial | 14.7 | 8 | 440 | 230 | 3.23 | 5.345 | 17.42 | 0 | Automatic | 3 | 4 |
| Fiat 128 | 32.4 | 4 | 78.7 | 66 | 4.08 | 2.2 | 19.47 | 1 | Manual | 4 | 1 |
| Honda Civic | 30.4 | 4 | 75.7 | 52 | 4.93 | 1.615 | 18.52 | 1 | Manual | 4 | 2 |
| Toyota Corolla | 33.9 | 4 | 71.1 | 65 | 4.22 | 1.835 | 19.9 | 1 | Manual | 4 | 1 |
| Toyota Corona | 21.5 | 4 | 120.1 | 97 | 3.7 | 2.465 | 20.01 | 1 | Automatic | 3 | 1 |
| Dodge Challenger | 15.5 | 8 | 318 | 150 | 2.76 | 3.52 | 16.87 | 0 | Automatic | 3 | 2 |
| AMC Javelin | 15.2 | 8 | 304 | 150 | 3.15 | 3.435 | 17.3 | 0 | Automatic | 3 | 2 |
| Camaro Z28 | 13.3 | 8 | 350 | 245 | 3.73 | 3.84 | 15.41 | 0 | Automatic | 3 | 4 |
| Pontiac Firebird | 19.2 | 8 | 400 | 175 | 3.08 | 3.845 | 17.05 | 0 | Automatic | 3 | 2 |
| Fiat X1-9 | 27.3 | 4 | 79 | 66 | 4.08 | 1.935 | 18.9 | 1 | Manual | 4 | 1 |
| Porsche 914-2 | 26 | 4 | 120.3 | 91 | 4.43 | 2.14 | 16.7 | 0 | Manual | 5 | 2 |
| Lotus Europa | 30.4 | 4 | 95.1 | 113 | 3.77 | 1.513 | 16.9 | 1 | Manual | 5 | 2 |
| Ford Pantera L | 15.8 | 8 | 351 | 264 | 4.22 | 3.17 | 14.5 | 0 | Manual | 5 | 4 |
| Ferrari Dino | 19.7 | 6 | 145 | 175 | 3.62 | 2.77 | 15.5 | 0 | Manual | 5 | 6 |
| Maserati Bora | 15 | 8 | 301 | 335 | 3.54 | 3.57 | 14.6 | 0 | Manual | 5 | 8 |
| Volvo 142E | 21.4 | 4 | 121 | 109 | 4.11 | 2.78 | 18.6 | 1 | Manual | 4 | 2 |
Using the Motor Trend Cars Data Set, you would like to determine if there is a relationship between MPG (miles per gallon) and specific variables included in the data set.
In: Statistics and Probability
| mpg | cyl | disp | hp | drat | wt | qsec | vs | am | gear | carb | |
| Mazda RX4 | 21 | 6 | 160 | 110 | 3.9 | 2.62 | 16.46 | 0 | Manual | 4 | 4 |
| Mazda RX4 Wag | 21 | 6 | 160 | 110 | 3.9 | 2.875 | 17.02 | 0 | Manual | 4 | 4 |
| Datsun 710 | 22.8 | 4 | 108 | 93 | 3.85 | 2.32 | 18.61 | 1 | Manual | 4 | 1 |
| Hornet 4 Drive | 21.4 | 6 | 258 | 110 | 3.08 | 3.215 | 19.44 | 1 | Automatic | 3 | 1 |
| Hornet Sportabout | 18.7 | 8 | 360 | 175 | 3.15 | 3.44 | 17.02 | 0 | Automatic | 3 | 2 |
| Valiant | 18.1 | 6 | 225 | 105 | 2.76 | 3.46 | 20.22 | 1 | Automatic | 3 | 1 |
| Duster 360 | 14.3 | 8 | 360 | 245 | 3.21 | 3.57 | 15.84 | 0 | Automatic | 3 | 4 |
| Merc 240D | 24.4 | 4 | 146.7 | 62 | 3.69 | 3.19 | 20 | 1 | Automatic | 4 | 2 |
| Merc 230 | 22.8 | 4 | 140.8 | 95 | 3.92 | 3.15 | 22.9 | 1 | Automatic | 4 | 2 |
| Merc 280 | 19.2 | 6 | 167.6 | 123 | 3.92 | 3.44 | 18.3 | 1 | Automatic | 4 | 4 |
| Merc 280C | 17.8 | 6 | 167.6 | 123 | 3.92 | 3.44 | 18.9 | 1 | Automatic | 4 | 4 |
| Merc 450SE | 16.4 | 8 | 275.8 | 180 | 3.07 | 4.07 | 17.4 | 0 | Automatic | 3 | 3 |
| Merc 450SL | 17.3 | 8 | 275.8 | 180 | 3.07 | 3.73 | 17.6 | 0 | Automatic | 3 | 3 |
| Merc 450SLC | 15.2 | 8 | 275.8 | 180 | 3.07 | 3.78 | 18 | 0 | Automatic | 3 | 3 |
| Cadillac Fleetwood | 10.4 | 8 | 472 | 205 | 2.93 | 5.25 | 17.98 | 0 | Automatic | 3 | 4 |
| Lincoln Continental | 10.4 | 8 | 460 | 215 | 3 | 5.424 | 17.82 | 0 | Automatic | 3 | 4 |
| Chrysler Imperial | 14.7 | 8 | 440 | 230 | 3.23 | 5.345 | 17.42 | 0 | Automatic | 3 | 4 |
| Fiat 128 | 32.4 | 4 | 78.7 | 66 | 4.08 | 2.2 | 19.47 | 1 | Manual | 4 | 1 |
| Honda Civic | 30.4 | 4 | 75.7 | 52 | 4.93 | 1.615 | 18.52 | 1 | Manual | 4 | 2 |
| Toyota Corolla | 33.9 | 4 | 71.1 | 65 | 4.22 | 1.835 | 19.9 | 1 | Manual | 4 | 1 |
| Toyota Corona | 21.5 | 4 | 120.1 | 97 | 3.7 | 2.465 | 20.01 | 1 | Automatic | 3 | 1 |
| Dodge Challenger | 15.5 | 8 | 318 | 150 | 2.76 | 3.52 | 16.87 | 0 | Automatic | 3 | 2 |
| AMC Javelin | 15.2 | 8 | 304 | 150 | 3.15 | 3.435 | 17.3 | 0 | Automatic | 3 | 2 |
| Camaro Z28 | 13.3 | 8 | 350 | 245 | 3.73 | 3.84 | 15.41 | 0 | Automatic | 3 | 4 |
| Pontiac Firebird | 19.2 | 8 | 400 | 175 | 3.08 | 3.845 | 17.05 | 0 | Automatic | 3 | 2 |
| Fiat X1-9 | 27.3 | 4 | 79 | 66 | 4.08 | 1.935 | 18.9 | 1 | Manual | 4 | 1 |
| Porsche 914-2 | 26 | 4 | 120.3 | 91 | 4.43 | 2.14 | 16.7 | 0 | Manual | 5 | 2 |
| Lotus Europa | 30.4 | 4 | 95.1 | 113 | 3.77 | 1.513 | 16.9 | 1 | Manual | 5 | 2 |
| Ford Pantera L | 15.8 | 8 | 351 | 264 | 4.22 | 3.17 | 14.5 | 0 | Manual | 5 | 4 |
| Ferrari Dino | 19.7 | 6 | 145 | 175 | 3.62 | 2.77 | 15.5 | 0 | Manual | 5 | 6 |
| Maserati Bora | 15 | 8 | 301 | 335 | 3.54 | 3.57 | 14.6 | 0 | Manual | 5 | 8 |
| Volvo 142E | 21.4 | 4 | 121 | 109 | 4.11 | 2.78 | 18.6 | 1 | Manual | 4 | 2 |
Using the Motor Trend Cars Data Set, you would like to determine if there is a relationship between MPG (miles per gallon) and specific variables included in the data set.
In: Statistics and Probability
Make a Console application
Language should be Visual Basic
You will be simulating an ATM machine as much as possible
Pretend you have an initial deposit of 1000.00. You will
Prompt the user with a Main menu:
Enter 1 to deposit
Enter 2 to Withdraw
Enter 3 to Print Balance
Enter 4 to quit
When the user enters 1 in the main menu, your program will prompt the user to enter the deposit amount.
If the user enter more than 2000, Print "Deposit of more than $2000 is not allowed" and
Prompt the user with a SubMenu:
Enter 1 for the Main Menu. If user enters 1, display the main menu
Enter 0 to quit. If user enter 0, exit the application
if the user enters less than 2000,
Print "Deposit Transaction Successful" and
Add the amount to the Balance
Prompt the user with a SubMenu:
Enter 1 for the Main Menu. If user enters 1, display the main menu
Enter 0 to quit. If user enter 0, exit the application
When the user enters 2 in the main menu, your program will prompt the user to enter a withdraw amount.
If the user enter more than 200, Print "Withdrawing more than $200 is not allowed
Prompt the user with a SubMenu:
Enter 1 for the Main Menu. If user enters 1, display the main menu
Enter 0 to quit. If user enter 0, exit the application
If the user enter less than 200, Print "Withdraw Transaction Successful."
deduct the amount from the Balance
Prompt the user with a SubMenu:
Enter 1 for the Main Menu. If user enters 1, display the main menu
Enter 0 to quit. If user enter 0, exit the application
When the user enters 3 in the main menu, print the balance as "Your Current Balance = "
Prompt the user with a SubMenu:
Enter 1 for the Main Menu. If user enters 1, display the main menu
Enter 0 to quit. If user enter 0, exit the application
When the user enters 4 in the main menu, exit the application
When the user enters other than 1-4, print "Invalid Transaction Requested"
Here is the output of my program, with user entered numbers highlighted in yellow
Enter 1 for Deposit
Enter 2 for Withdraw
Enter 3 for Print Balance
Enter 4 for Quit
1
Enter the amount to Deposit
3000
Deposit More than $2000 is not allowed
Enter 1 to Main Menu
Enter 2 to Quit
1
Enter 1 for Deposit
Enter 2 for Withdraw
Enter 3 for Print Balance
Enter 4 for Quit
1
Enter the amount to Deposit
1999
Deposit Transaction successful
Enter 1 to Main Menu
Enter 2 to Quit
1
Enter 1 for Deposit
Enter 2 for Withdraw
Enter 3 for Print Balance
Enter 4 for Quit
3
Your Current Balance =2999
Enter 1 to Main Menu
Enter 2 to Quit
1
Enter 1 for Deposit
Enter 2 for Withdraw
Enter 3 for Print Balance
Enter 4 for Quit
2
Enter the amount to Withdraw
250
Withdrawing More than $200 is not allowed
Enter 1 to Main Menu
Enter 2 to Quit
1
Enter 1 for Deposit
Enter 2 for Withdraw
Enter 3 for Print Balance
Enter 4 for Quit
2
Enter the amount to Withdraw
150
Withdraw Transaction successful
Enter 1 to Main Menu
Enter 2 to Quit
1
Enter 1 for Deposit
Enter 2 for Withdraw
Enter 3 for Print Balance
Enter 4 for Quit
3
Your Current Balance =2849
Enter 1 to Main Menu
Enter 2 to Quit
1
Enter 1 for Deposit
Enter 2 for Withdraw
Enter 3 for Print Balance
Enter 4 for Quit
5
Invalid Transaction requested
Enter 1 to Main Menu
Enter 2 to Quit
1
Enter 1 for Deposit
Enter 2 for Withdraw
Enter 3 for Print Balance
Enter 4 for Quit
4
You should test for the same output as mine. Upload the VB script and screenshot of your application.
In: Computer Science
1.Includes a summary of the conditions with definition, signs
and symptoms and treatment
2. Place the conditions by a system in alphabetical order
Liquids and electrolytes
1 hypervolemia
2. Hypovolemia
3. Hypernatremia
4. Hyponatremia
5. Hyperkalemia
6. Hypokalemia
7. Hypercalcemia
8. Hypocalcemia
Immunology
1. AIDS
Cancer
1 leukemia
2. Hodgkin
3. Myeloma
4. Lymphoma
In: Nursing
Use Newton's method to find a solution for the equation in the given interval. Round your answer to the nearest thousandths. ? 3 ? −? = −? + 4; [2, 3] [5 marks] Answer 2.680
Q6. Use the Taylor Polynomial of degree 4 for ln(1 − 4?)to approximate the value of ln(2). Answer: −4? − 8?2 − 64 3 ? 3 − [6 marks]
Q7. Consider the curve defined by the equation 2(x2 + y2 ) 2 = 25(x2 − y2 ). Find the equation of the line tangent to the curve at the point(3, 1). [5 marks]
In: Advanced Math
The molecular weight of methylene blue is 320 g/mol. The
concentration of the original sample was 0.005 mg/ml in 10 ml.
Determine the molarity (M) of your original sample and each
dilution.
Original:
Dilution 1 (1:2 add 3mL of methylene blue + 3mL of water) :
Dilution 2 (1:4 use 3mL of of 1:2 solution + 3mL of water) :
Dilution 3 (1:8 use 3mL of 1:4 solution + 3 mL of water) :
Dilution 4 (1:10 use 0.5 ml of the original methylene blue + 4.5 mL
of water) :
Please show all work!!
In: Biology
Consider the following game between Bobbi and Gary:
| Gary | ||||
| Left | Center | Right | ||
| High | 4, 4 | 7, 5 | 5, 2 | |
| Bobbi | Middle | 8, 3 | 2, 4 | 1, 12 |
| Low | 10, 6 | 9, 1 | 4, 3 |
1. T/F Gary has a dominant strategy.
2. T/F Bobbi has a dominant strategy.
3. Does Gary have a dominated strategy? If so, what is it?
4. Does Bobbi have a dominated strategy? If so, what is it?
5. What is Gary's choice in the Nash Equilibrium?
6. What is Bobbi's choice in the Nash Equilibrium?
In: Economics
Trump De Drum Ltd (TDT) is a company in aquacultural industry specialised in farming of aquatic organisms. DT is considering opening a new farm in Sandy Bay. This project would involve the purchase of 13 hectares land at a price of $1,000,000 (Note that: The land is not subject to depreciation for accounting and tax purposes). In addition to that, the company will need to purchase eight special equiments which cost $125,000 each. The equipments are expected to be in use for 5 years and after that, they will be scrapped without any residual value. Each year, each of these equipments will incur $5,000 maintenance cost. It is assumed that the farm will first be used at the beginning of the next financial year: 1 July 2021.
Before starting this new operation, TDT will need to redevelop and renovate the warehouse at the farm. This is expected to cost $200,000. Assume that TDT is not able to claim any annual tax deduction for the capital expenditure to the renovation of the building until the business is sold.
Revenue projections from the farm for the next five years are as follows:
|
Year 1 |
Year 2 |
Year 3 |
Year 4 |
Year 5 |
|
|
Beginning |
1/7/2021 |
1/7/2022 |
1/7/2023 |
1/7/2024 |
1/7/2025 |
|
Ending |
30/6/2022 |
30/6/2023 |
30/6/2024 |
30/6/2025 |
30/6/2026 |
|
Production quantity (tons) |
120 |
140 |
170 |
185 |
185 |
|
Price (per tons) |
$9,000 |
$9,150 |
$9,250 |
$9,300 |
$9,350 |
Operating variable costs associated with the new business including material costs and labour costs. Estimated material costs per tons in year 1 is $2,000 and this cost will increase by 3.5% every year. The farm will require about 6 workers working for 8 hours a day, 200 days per year. The pay rate is flat at $20/ hour including superannuation. Annual operating fixed costs associated with production (excluding depreciation) are $100,000. Existing administrative costs are $550,000 per annum. As a result of the new operation, these administrative costs will increase by 30%. The company is subject to a tax rate of 30% on its profits.
Meanwhile, TDT Ltd is currently financed by 60% of equity and 40% of debt. Company’s bond is traded at a price of $980. The bond has 10 year term, 8% coupon rate paid semi-annually and face value of $1,000. In addition, company’s equity has a beta of 1.2 while the risk-free rate in the market is 3% and market portfolio return is estimated to be 12%.
P. De Potato, the company CFO would like you to help him examine the viability of the project for the next five years, taking into account the projections of sales and operations costs prepared by company’s accountants.
Your tasks:
Based on the information in the case study, P. De Potato has asked you to write a report to TDT’s management advising them as to the best course of action regarding this project. Your report should address the following specific questions asked by management:
In: Finance