a_list = [1, 2, 3, 4, 5]
list_index = 7
#-----------------------------------------------------------
#You may modify the lines of code above, but don't move them!
#When you Submit your code, we'll change these lines to
#assign different values to the variables.
#In this problem, we're going to use some unfamiliar
syntax.
#You'll learn more about this syntax in Unit 4. For now,
#though, you don't need to understand the syntax. All you
#need to know is that right now, this code will cause an
#error with the values supplied above.
#
#Revise this code so that this error is caught, and the
#message "Invalid index!!" is printed. However, your revision
#must meet these requirements, too:
#
# - If the values of the variables above are changed so
# that the error doesn't occur, the program should behave
# the same way that it does now.
# - The two first and last lines, "Accessing index..." and
# "Done!", should print whether or not an error occurs.
# - If a *different* error occurs from the one that arises
# initially, your code should instead print "Unknown
# error!"
#
#HINT: You won't be able to do this without running the code
#first and seeing what the error is. So, try it out first!
#Revise this code:
print("Accessing index...")
result = a_list[list_index]
print("Value at index:", result)
print("Done!")
In: Computer Science
Time Cash flow
0 -165,000
1 56,500
2 67,400
3 45,600
4 29,800
5 7,500
Suppose your firm is considering investing in Project K with the cash flows shown in the table. Assume that the required rate of return on projects of this risk class is 7.5 percent, and that the maximum allowable payback and discounted payback statistics for the project are 3.0 and 3.6 years, respectively. Which of the following statements is (are) correct?
(x) If you use the payback decision rule to evaluate this project then you accept the project since the payback period is 2.9 years.
(y) If you use the discounted payback decision rule to evaluate this project then you reject the project since the discounted payback period is 3.8 years. (z) The NPV of this project is more than $10,000. If you use the NPV decision rule to evaluate this project; then it should be accepted.
In: Finance
I DID STEP 1-2 AND 3 I JUST NEED A STEP 4 ANSWERS AND THIS IS SO EMERGENCY(DUE DATE TONIGHT) PLEASE HELP (I WILL GIVE UPVOTE AND GOOD COMMENT THANK YOU) if you need to see step 1-2-3 I can add on the comment.
Step 1 - WhoIs
Step 2 - TCP Port Scanning
Step 3 - UDP Port Scanning
Step 4 - Analysis ---- Answer these questions:
In: Computer Science
We can write 13 as a sum of distinct powers of 2: 13 = 8+4+1 = 2 3 +2 2 +2 0 .
• Using strong induction, show every integer can be written as the sum of distinct powers of two.
• Show that every integer has a unique representation as the sum of distinct powers of two. It follows that every integer has a unique binary representation. For instance, 13 is uniquely represented by 1101 in binary
In: Advanced Math
Chapter 4 Assignments - Part #1 (Part #2 is on next page)
Submit an HTML file attached to an email with your web page containing the elements below.
- Create a web page with a comment containing your name after this line.
o
- In the head section, add character encoding.
- Add the title "Chapter 4 Web Page #1 - by yourname"
- Create a file called myStyles.css as the style sheet for the web page.
- Add the link for the style sheet in the index.html file.
- Create a banner ~180x800 for the web page using Snip, Paint, PowerPoint, or another program and add the banner (non-elastic banner) to the web page by creating a banner class in the style sheet and a "div" in index.html.
o Include a graphic and text in the banner.
- In the style sheet, redefine h1 as Tahoma, green, and 30 pixels.
- In the style sheet, redefine h2 as Arial, blue, and 20 pixels.
- Create a page box class in the style sheet with a background color and center the box on the page.
o Use a padding of 20%, and width of 80%, and a rounded corner border of 15px radius and 3px thick of some color.
o Inside the page box, add the text shown and answers to the questions below.
o Make the page box as wide as the banner regardless of browser resizing.
- Create a footer class with your name, the copyright symbol, and year centered.
o The footer will have a color background, a border 1 pixel thick that is a different color than the background.
o The footer text will use h3 and be white and italic o The footer text will be padded with 2 pixels top and bottom
Questions:
1. CSS documents the ________________ status of each style property.
2. CSS is used to define _________ _________ and attach them to HTML elements.
3. This statement /* browser note */ is a ____________ in CSS.
4. The _______ element for a CSS is placed inside the head element of the page.
5. The ____________ associates a rule to a set of HTML elements.
6. a:visited { color: #300 } will make __________ _________ red.
In: Computer Science
close sidebar
STAT 213 Assignment 3: Problem 5
Previous Problem Problem List Next Problem
(1 point)
To examine the effectiveness of its four annual advertising promotions, a mail order company has sent a questionnaire to each of its customers, asking how many of the previous year's promotions prompted orders that would not have otherwise been made. The accompanying table lists the probabilities that were derived from the questionnaire, where X is the random variable representing the number of promotions that prompted orders. If we assume that overall customer behavior next year will be the same as last year, what is the expected number of promotions that each customer will take advantage of next year by ordering goods that otherwise would not be purchased?
| X | 0 | 1 | 2 | 3 | 4 |
| P(X) | 0.072 | 0.221 | 0.347 | 0.176 | 0.184 |
Expected value =
equation editor
Equation Editor
A previous analysis of historical records found that the mean value of orders for promotional goods is 35 dollars, with the company earning a gross profit of 22% on each order. Calculate the expected value of the profit contribution next year.
Expected value =
equation editor
Equation Editor
The fixed cost of conducting the four promotions is estimated to be 17000 dollars with a variable cost of 2 dollars per customer for mailing and handling costs. What is the minimum number of customers required by the company in order to cover the cost of promotions? (Round your answer to the next highest integer.)
Breakeven point =
equation editor
Equation Editor
In: Math
Java
Part 2 of 4 - Amusement Park Programming Project
MUST BE COMPATIBLE WITH PART 1
https://www.chegg.com/homework-help/questions-and-answers/java-part-1-4-amusement-park-programming-project-requirements-use-java-selection-construct-q40170145?trackid=ERIFssNL
Requirements:
Class:
Merchandise – models merchandise available in the gift shop such as t-shirts, sweatshirts, and stuffed animals.
Instance Fields:
Constructors and Methods:
In: Computer Science
Question 3. Find a solution to the instance π = 2 3 1 4 5 7 6 of the Pancake Flipping problem using a greedy approach (15 points). Describe your algorithm using pseudocode. (10 points)
In: Computer Science
| Year | Revenues |
| 1 | $60,000 |
| 2 | 40,000 |
| 3 | 30,000 |
| 4 | 10,000 |
| Thereafter | 0 |
|
Expenses are expected to be 30% of revenues, and working capital required in each year is expected to be 10% of revenues in the following year. The product requires an immediate investment of $81,000 in plant and equipment. |
| a. | What is the initial investment in the product? Remember working capital. |
| Initial investment | $ |
|
b. |
If the plant and equipment are depreciated over 4 years to a salvage value of zero using straight-line depreciation, and the firm’s tax rate is 20%, what are the project cash flows in each year? (Enter your answers in thousands of dollars. Do not round intermediate calculations. Round your answers to 2 decimal places.) |
| Year | Cash Flow |
| 1 | $ |
| 2 | |
| 3 | |
| 4 | |
| c. |
If the opportunity cost of capital is 10%, what is project NPV? (Negative amount should be indicated by a minus sign. Do not round intermediate calculations. Round your answer to 2 decimal places.) |
| NPV | $ |
| d. |
What is project IRR? (Do not round intermediate calculations. Round your answer to 2 decimal places.) |
| IRR | % |
In: Finance
The language is C++.
1. (4 pts) What is a constructor? Explain.
2. (3 pts) What is a class? Explain.
3. (3 pts) In your own words, what is a function overloading?
In: Computer Science