Create and test a Windows Console application that displays the following patterns separately, one after the other. You MUST use nested for loops to generate the patterns, like the example in the PowerPoint slides from this chapter. All asterisks (*) should be displayed by a single statement of the form Console.Write("*"); which causes the asterisks to display side by side. A statement of the form Console.WriteLine(); can be used to move to the next line. A statement of the form Console.Write(" "); can be used to display a space for the last two patterns. There should be no other output statements in the application, other than labeling each pattern. The application's output should look like the following: Remember, use Debug, Start Without Debugging (CTRL-F5) to run your Console application. For Pattern C and Pattern D, you will need TWO loops (one after the other) nested inside your outer loop. The first loop will produce a certain number of spaces. The second loop will produce a certain number of stars. One of these numbers will be the current value of your outer loop's control variable. The other number must be calculated using ALGEBRA. Consider, how many spaces and stars are being output on each row? Always the same amount (here, 10 or MAX_ROWS, if using the same named constant as in the PowerPoint slide code given for Pattern A). So, (# spaces) + (# stars) = MAX_ROWS This equation is easy to solve for the number of spaces needed (assuming your outer loop control variable represents that number of stars per row, as in the PowerPoint slide code given for Pattern A): (# spaces) = MAX_ROWS - (# stars) or (# spaces) = MAX_ROWS - row if you name your variables as in the PowerPoint slide code given for Pattern A. So, you can make your first nested loop start at 1 and count up to (MAX_ROWS - row), outputting a single space on each iteration
Pattern A * ** *** **** ***** ****** ******* ******** ********* ********** Pattern B ********** ********* ******** ******* ****** ***** **** *** ** *
(c)
**********
*********
********
*******
******
*****
****
***
**
*
(d)
*
**
***
****
*****
******
*******
********
*********
In: Computer Science
Rearden Metal has earnings per share of $2. It has 10 million shares outstanding and is trading at $20 per share. Rearden Metal is thinking of buying Associated Steel, which has earnings per share of $1.25, 4 million shares outstanding, and a price per share of $15. Rearden Metal will pay for Associated Steel by issuing new shares. There are no expected synergies from the transaction. If Rearden offers an exchange ratio such that, at current pre-announcement share prices for both firms, the offer represents a 20% premium to buy Associated Steel, then the price per share of the Rearden immediately after the announcement will be closest to:
Group of answer choices $15.00 $17.20 $18.60 $19.10
In: Finance
24 . Analysis of an expansion project
Companies invest in expansion projects with the expectation of increasing the earnings of its business.
Consider the case of McFann Co.:
McFann Co. is considering an investment that will have the following sales, variable costs, and fixed operating costs:
|
Year 1 |
Year 2 |
Year 3 |
Year 4 |
|
|---|---|---|---|---|
| Unit sales | 4,200 | 4,100 | 4,300 | 4,400 |
| Sales price | $29.82 | $30.00 | $30.31 | $33.19 |
| Variable cost per unit | $12.15 | $13.45 | $14.02 | $14.55 |
| Fixed operating costs | $41,000 | $41,670 | $41,890 | $40,100 |
This project will require an investment of $20,000 in new equipment. Under the new tax law, the equipment is eligible for 100% bonus deprecation at t = 0, so it will be fully depreciated at the time of purchase. The equipment will have no salvage value at the end of the project’s four-year life. McFann pays a constant tax rate of 25%, and it has a weighted average cost of capital (WACC) of 11%. Determine what the project’s net present value (NPV) would be under the new tax law.
Determine what the project’s net present value (NPV) would be under the new tax law.
$59,532
$68,462
$71,438
$53,579
Now determine what the project’s NPV would be when using straight-line depreciation.
Using the depreciation method will result in the highest NPV for the project.
No other firm would take on this project if McFann turns it down. How much should McFann reduce the NPV of this project if it discovered that this project would reduce one of its division’s net after-tax cash flows by $600 for each year of the four-year project?
$1,396
$2,047
$1,582
$1,861
The project will require an initial investment of $20,000, but the project will also be using a company-owned truck that is not currently being used. This truck could be sold for $14,000, after taxes, if the project is rejected. What should McFann do to take this information into account?
The company does not need to do anything with the value of the truck because the truck is a sunk cost.
Increase the amount of the initial investment by $14,000.
Increase the NPV of the project by $14,000.
In: Finance
Suppose you are running a business and thinking to enter the monopoly market. As per your calculation, you can make a profit by keeping your product price 20% less than the monopolist. Explain, how the monopolist might react to stop you to enter the business?Suppose you are running a business and thinking to enter the monopoly market. As per your calculation, you can make a profit by keeping your product price 20% less than the monopolist. Explain, how the monopolist might react to stop you to enter the business?
In: Economics
Finish the calories_burned_functions.py program that we started in class. Take the original calories_burned program and rework it so that it uses two functions/function calls.
Use the following file to get your program started:
"""
''' Women: Calories = ((Age x 0.074) - (Weight x 0.05741) +
(Heart Rate x 0.4472) - 20.4022) x Time / 4.184 '''
''' Men: Calories = ((Age x 0.2017) + (Weight x 0.09036) + (Heart
Rate x 0.6309) - 55.0969) x Time / 4.184 '''
"""
#Declare Variable names and types
age_years = int(input())
weight_pounds = int(input())
heart_bpm = int(input())
time_minutes = int(input())
#Performing Calculations
calories_woman = ( (age_years * 0.074) - (weight_pounds * 0.05741)
+ (heart_bpm * 0.4472) - 20.4022 ) * time_minutes / 4.184
calories_man = ( (age_years * 0.2017) + (weight_pounds * 0.09036) + (heart_bpm * 0.6309) - 55.0969 ) * time_minutes / 4.184
#Print and format results in detail
print('Women: {:.2f} calories'.format(calories_woman))
print('Men: {:.2f} calories'.format(calories_man))
"""
#Here are the functions to this program
def calc_calories_woman(years, pounds, heartrate,
minutes):
return ( (age_years * 0.074) - (weight_pounds * 0.05741) +
(heart_bpm * 0.4472) - 20.4022 ) * time_minutes / 4.184
#This is the main part of the program
#------------------------------------------------------------------------------
#Prompt the user at the keyboard for the necessary information
age_years = int(input("Please enter your age: "))
weight_pounds = int(input("Please enter your weight: "))
heart_bpm = int(input("Please enter your heart rate: "))
time_minutes = int(input("Please enter the time: "))
#Calculate the calories
calories_woman = ( (age_years * 0.074) - (weight_pounds * 0.05741) + (heart_bpm * 0.4472) - 20.4022 ) * time_minutes / 4.184
calories_man = ( (age_years * 0.2017) + (weight_pounds * 0.09036) + (heart_bpm * 0.6309) - 55.0969 ) * time_minutes / 4.184
#Print the results
print('Women: {:.2f} calories'.format(calories_woman))
print('Men: {:.2f} calories'.format(calories_man))
In: Computer Science
A piston contains 410 moles of an ideal monatomic gas that initally has a pressure of 2.89
In: Physics
Throughout history, performers have been revered and reviled. What is the contemporary attitude toward them? Are they seen as different from other people? In what way
In: Psychology
Provide a comparison of at least 10 Internet of Things communication protocols. Provide your answer in a table format labelling each comparison parameter with a suitable heading. Use at least 5 parameters for comparison.
In: Computer Science
In: Operations Management
QUESTION 1
Use the following scenario and data for all questions
An auto service center provides two types of services, Tire
Replacement (T) and Oil Change (O). About 30% of the customers are
for Tire Replacement and the other 70% are for Oil Change. All
customers are serviced on a first come first served basis. During
regular hours, customers arrive at the service center according to
the probability distribution in the following table
Two technicians are working at the service center and both of them
are skillful enough for both Tire Replacement and Oil Change. Once
finishing the job for a customer, a technician will take care of
the next customer waiting in line. When both technicians are idle,
the one who finished the last job earlier will take care of the
next incoming customer. The times taken by the two jobs by any of
the technicians follow the probability distributions in the
following tables. You are required to simulate the operations of
the auto service center for 15 customers.
Before answering the following questions, you may use the following
tables to determine the cumulative probability distributions and
assign random number intervals for customer arrivals, customer
service types, and time needed for both types of services.
You may also simulate the operations of this auto service center
for the 15 customers using the random numbers given in the
following table. The “Start Time” is the time point when the job
for the customer starts and the “Finish Time" is the time point
when the job for the customer finishes.
For customer arrivals, the random number interval assigned to the
Time between Arrivals of 5 minutes is
|
0.0000-0.1499 |
||
|
0.1500-0.3999 |
||
|
0.4000-0.7999 |
||
|
0.8000-0.9999 |
||
|
None of the above |
1 points
QUESTION 2
For customer arrivals, the random number interval assigned to the Time between Arrivals of 15 minutes is
|
0.0000-0.1499 |
||
|
0.1500-0.3999 |
||
|
0.4000-0.7999 |
||
|
0.8000-0.9999 |
||
|
None of the above |
1 points
QUESTION 3
For the Customer Service Type, the random number interval assigned to Tire Replacement is
|
0.0000-0.6999 |
||
|
0.0000-0.2999 |
||
|
0.2999-0.9999 |
||
|
0.3000-0.9999 |
||
|
None of the above |
1 points
QUESTION 4
For the Customer Service Type, the random number interval assigned to Oil Change is
|
0.0000-0.6999 |
||
|
0.0000-0.2999 |
||
|
0.2999-0.9999 |
||
|
0.3000-0.9999 |
||
|
None of the above |
1 points
QUESTION 5
For the Tire Replacement, the random number interval assigned to Service Time 25 minutes is
|
0.0000-0.1999 |
||
|
0.2000-0.4499 |
||
|
0.4500-0.8499 |
||
|
0.8500-0.9999 |
||
|
None of the above |
1 points
QUESTION 6
For the Tire Replacement, the random number interval assigned to Service Time 35 minutes is
|
0.0000-0.1999 |
||
|
0.2000-0.4499 |
||
|
0.4500-0.8499 |
||
|
0.8500-0.9999 |
||
|
None of the above |
1 points
QUESTION 7
For the Oil Change, the random number interval assigned to the Service Time 15 minutes is
|
0.0000-0.2999 |
||
|
0.3000-0.6999 |
||
|
0.7000-0.8999 |
||
|
0.9000-0.9999 |
||
|
None of the above |
In: Operations Management
There are various methods which organizations can use to acquire a new system. Some of these include: outsourcing, off-the-shelf software and in-house development. Select two of these three methods to acquire software and discuss the advantages and disadvantages of each. Which do you believe is the preferred method of systems acquisition
In: Computer Science
. What is public relations advertising and how is it different from commercial, sales-oriented advertising? Thoroughly explain and give examples of the three primary categories of PR advertising we discussed in class. Next, assume you are PR director for a corporation such as General Motors or IBM. How would you use PR advertising to support the goals of your organization?
In: Operations Management
You are given the following information concerning two stocks that make up an index.
| Price per Share | |||||||||||
| Shares Outstanding | Beginning of Year | End of Year | |||||||||
| Kirk, Inc. | 38,000 | $ | 46 | $ | 51 | ||||||
| Picard Co. | 34,000 | 76 | 82 | ||||||||
a. Assume that you want to build a price-weighted index including the two stocks. Please calculate the beginning index and the end index. (Do not round intermediate calculations. Enter your answer as a percent rounded to 2 decimal places.)
Beginning Index:
End Index:
b. What is the return for the price-weighted index? (Do not round intermediate calculations. Enter your answer as a percent rounded to 2 decimal places.)
Index Return: %
c. Assume that you want to rebuild a value-weighted index with the index value at the beginning of the year equal to 100. What is the index level at the end of the year? (Do not round intermediate calculations. Round your answer to 2 decimal places.
Index Level at the end:
d. What is the return of the value-weighted index? (Do not round intermediate calculations. Enter your answer as a percent rounded to 2 decimal places.)
Index Return: %
e. Assume the value-weighted index has been existing for 10 years and the index level happened to be 311.05 at the beginning of the year. What is the index level at the end of the year? (Do not round intermediate calculations. Round your answer to 2 decimal places.
Index Level at the end:
f. What is the return of this existing value-weighted index? (Do not round intermediate calculations. Enter your answer as a percent rounded to 2 decimal places.)
Index Return: %
In: Finance
Constant Growth Stock Valuation
Investors require a 17% rate of return on Brooks Sisters' stock (rs = 17%).
In: Finance
You buy a share of The Ludwig Corporation stock for $24.00. You expect it to pay dividends of $1.06, $1.14, and $1.2260 in Years 1, 2, and 3, respectively, and you expect to sell it at a price of $31.51 at the end of 3 years.
In: Finance