// The QuickCopy company currently makes 100,000 copies per
year
// at 15 cents each.
// They expect to increase the number of copies produced
// by 4 percent per year each year for the next 10 years,
// starting with this year.
// They also expect the price of each copy to increase
// by 3 cents per year, starting with this year.
// This program displays the company's expected
// income for each of the next 10 years.
// Modify it to be more efficient.
start
Declarations
num year = 1
num copies = 100000
num price = 0.15
num total = 0
num COPIES_INCREASE = 0.04
num PRICE_INCREASE = 0.03
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year + 1
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year + 1
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year + 1
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year + 1
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year + 1
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year + 1
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year + 1
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year + 1
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year + 1
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
stop
In: Computer Science
Conch Republic can manufacture the new smart phones for $300
each in variable costs. Fixed costs for the operation are estimated
to run $4.3 million per year. The estimated sales volume is 75,000,
95,000, 125,000, 130,000, and 140,000 per year for the next five
years, respectively. The unit price of the new smart phone will be
$650. The necessary equipment can be purchased for $61 million and
will be depreciated on a seven-year MACRS schedule. It is believed
the value of the equipment in five years will be $3.4
million.Shelley believes that the unit sales, variable costs and
equipment cost projections are accurate to ±20%.
Questions:
6. What is the best case NPV, IRR and PBP of the project?
7. What is the worst case NPV, IRR and PBP of the project? What
would be your decision under the worst case scenario?
Please show working using excel:
| Base Case | Best Case | Worst Case | ||||
| 0% | 20% | -20% | ||||
| Change in Unit Sales (%) | ||||||
| Equipment Cost ($) | ||||||
| Variable cost (per unit) | ||||||
| Best Case Scenario | ||||||
| Pro Forma Income Statements | ||||||
| Year | Year 1 | Year 2 | Year 3 | Year 4 | Year 5 | |
| Revenues | ||||||
| Variable costs | ||||||
| Fixed costs | ||||||
| Depreciation | ||||||
| EBIT | ||||||
| Taxes (0%) | ||||||
| Net income | ||||||
| OCF | ||||||
| Net Working Capital | ||||||
| Year | Year 0 | Year 1 | Year 2 | Year 3 | Year 4 | Year 5 |
| Initial NWC | ||||||
| Ending NWC | ||||||
| NWC cash flow | ||||||
| Salvage Value | ||||||
| Market value of salvage | ||||||
| Book value of salvage | ||||||
| Taxes on sale: | ||||||
| Aftertax salvage value: | ||||||
| Project Cash Flows | ||||||
| Year | Year 0 | Year 1 | Year 2 | Year 3 | Year 4 | Year 5 |
| OCF | ||||||
| Change in NWC | ||||||
| Capital spending | ||||||
| Total cash flow | ||||||
| Cumulative cash flow | ||||||
| Payback Period | ||||||
| NPV | ||||||
| IRR | ||||||
| Worst Case Scenario | ||||||
| Pro Forma Income Statements | ||||||
| Year | Year 1 | Year 2 | Year 3 | Year 4 | Year 5 | |
| Revenues | ||||||
| Variable costs | ||||||
| Fixed costs | ||||||
| Depreciation | ||||||
| EBIT | ||||||
| Taxes (0%) | ||||||
| Net income | ||||||
| OCF | ||||||
| Net Working Capital | ||||||
| Year | Year 0 | Year 1 | Year 2 | Year 3 | Year 4 | Year 5 |
| Initial NWC | ||||||
| Ending NWC | ||||||
| NWC cash flow | ||||||
| Salvage Value | ||||||
| Market value of salvage | ||||||
| Book value of salvage | ||||||
| Taxes on sale: | ||||||
| Aftertax salvage value: | ||||||
| Project Cash Flows | ||||||
| Year | Year 0 | Year 1 | Year 2 | Year 3 | Year 4 | Year 5 |
| OCF | ||||||
| Change in NWC | ||||||
| Capital spending | ||||||
| Total cash flow | ||||||
| Cumulative cash flow | ||||||
| Payback Period | ||||||
| NPV | ||||||
| IRR | ||||||
| Question 6 | ||||||
| Uncertainty | NPV | IRR | PBP | |||
| Best Case | 20% | |||||
| Question 7 | ||||||
| Uncertainty | NPV | IRR | PBP | |||
| Worst Case | -20% | |||||
| Decision | ||||||
In: Finance
Matlab code problems
I have to write a code using functions to find out if a year is a leap year. I'm on the write track i feel like but I keep getting an error message and matlab isnt helping to troubleshoot. The issue is on line 30. Here is my code:
function project_7_mfp()
% PROJECT_7_ABC project_7_abc() creates a
function that prompts the user
% enter a year after 1582 It then determines if it is a
leap year
%
% Name:
% Date:
% Class: CMPSC 200
%
% Print the splash screen using a
printHeader() function
% Prompt the user for the single data input for the
program. This
% is the year. You will need to write a
local function called getDataRange().
% Then call it here. The function will
return a single input. The
% getDataRange function must error check
the input to be sure that is at
% least 1582 when the Gregorian calenday
was enacted.
global debug
debug = 0;
getDataRange('Enter the year: ', 1582, inf);
if(debug)
fprintf('You entered %f\n', year);
end
% Call isLeapYear(year) to check if the year is a leap
year.
isLeapYear(year);
% Use printResults to print if the year is
a leap year or not
printResults(year, leap)
end
function getDataRange(prompt, a, b)
% GETDATARANGE getDataRange(prompt, a, b)
is a wrapper function to enter
% and error check that input. prompt is a variable
storing the prompt to be
% printed. a and b are the minimum and maximum values
for the error checking
%
% Name:
% Class: CMPSC 200
% Date:
%
global debug
year = input(prompt);
assignin('base','year',year)
if(debug)
fprintf('Calling the selection to check if the value is within
range\n');
end
%error check
if ((year < a) || (year > b))
if(debug)
fprintf('The value is out of range so throw an exception and
exit\n');
end
error('Entered value, %f, is outside of the range of %f to %f',
year, a, b);
end
if (mod(year,1) ~=0)
error('Entered value, %f, is not an integer',
year);
end
end
function leap = isLeapYear(year)
% ISLEAPYEAR isLeapYear(year) checks the
input to determine if it is a leap
% year. If it is, the function returns 1. If it is not
it returns 0
%
% Name:
% Class: CMPSC 200
% Date:
%
%failure
assignin('base','year',year)
if (mod(year,400)==0)
leap = 1;
elseif (mod(year,100)==0)
leap = 0;
elseif (mod(year,4)==0)
leap = 1;
else
leap = 1;
end
end
function printResults(year, leap)
% PRINTRESULTS printResults(year, leap)
prints a statement indicating
% if the year is a leap year or if it is not.
%
% Name:
% Class: CMPSC 200
% Date:
%
if leap == 1
fprintf('%f is a leap year', year);
elseif leap == 0
fprintf('%f is not a leap year', year);
end
end
In: Computer Science
In: Finance
As a winner of a breakfast cereal competition, you can choose one of the following prizes:
If the interest rate is 5%, which is the most valuable prize? Show your working for each.
In: Finance
Depreciation by Three Methods; Partial Years
Perdue Company purchased equipment on April 1 for $37,530. The equipment was expected to have a useful life of three years, or 4,860 operating hours, and a The estimated value of a fixed asset at the end of its useful life.residual value of $1,080. The equipment was used for 900 hours during Year 1, 1,700 hours in Year 2, 1,500 hours in Year 3, and 760 hours in Year 4.
Required:
Determine the amount of depreciation expense for the years ended December 31, Year 1, Year 2, Year 3, and Year 4, by (a) the A method of depreciation that provides for equal periodic depreciation expense over the estimated life of a fixed asset.straight-line method, (b) A method of depreciation that provides for depreciation expense based on the expected productive capacity of a fixed asset. units-of-output method, and (c) the A method of depreciation that provides periodic depreciation expense based on the declining book value of a fixed asset over its estimated life.double-declining-balance method.
Note: FOR DECLINING BALANCE ONLY, round the multiplier to four decimal places. Then round the answer for each year to the nearest whole dollar.
a. Straight-line method
| Year | Amount |
| Year 1 | $ |
| Year 2 | $ |
| Year 3 | $ |
| Year 4 | $ |
b. Units-of-output method
| Year | Amount |
| Year 1 | $ |
| Year 2 | $ |
| Year 3 | $ |
| Year 4 | $ |
c. Double-declining-balance method
| Year | Amount |
| Year 1 | $ |
| Year 2 | $ |
| Year 3 | $ |
| Year 4 | $ |
In: Accounting
This is just a very basic program/problem in Java I'm looking for some second opinions on.
1. Ask the user for a year input (positive integer - should be between 1500 and 2019, inclusive).
2. If the year input is not between 1500 and 2019, do not check for leap year, rather print that this year cannot be checked.
3. Take a year input from the user (should be between 1500 and 2019)
4. If the input year is a leap year, print that year is a leap year; otherwise, print that the year is not a leap year.
In: Computer Science
A small economy produced and consumed only two goods (computers and pies) in Year 1 and Year 2, in the amounts shown in the table below.
[Read the next sentence very carefully.] Year 1 is the base year for all calculation purposes in this question, and we also assume that the official market basket for the CPI is the actual mix of output produced in Year 1.
|
Computers |
Pies |
|||
|
Quantity |
Price |
Quantity |
Price |
|
|
Year 1 |
30 |
$1000 |
100 |
$10 |
|
Year 2 |
40 |
$1100 |
110 |
$10 |
In: Economics
You have to be the chief Software Engineer, and your mission is to describe functional and non-functional requirements, as good and detailed as possible. When you are missing data, you have to make assumptions (sometimes wild ones). No one can really answer your questions, and you have a presentation to the higher management in 45 min sharp. By then, you have to construct a document, with a very small ( no more than 10 lines) executive description, and no more than two A4 pages (1.25 space, font 12) text. Good luck.
INFORMATION ABOUT THE PROJECT
Our company is seriously considering of bidding for the following project, and we ask you, the lead Software Engineer, to construct a draft document, with the functional and non-functional requirements. The better your document, the better job will do our business development team to construct a proposal.
Project abstract description
The project is about monitoring the two gates of the University, automate the entry of authorized personnel, plus record all car license plates, if they left at night, and also raise alarms if a car is in the parking for more than 5 days. Also the system needs to report cars that are still at the parking, or during any holiday, or when the University is closed officially (e.g., during summer holidays). During those periods, only high-ranking personnel is automatically allowed to enter (e.g., Deans). All others need to be stopped at the gate, and call their supervisor. For that purpose, the following descriptions have been gathered.
Notes
• Each security room next to each gate, will be equipped with the necessary hardware, in order for the guards to see the license plate camera, plus another camera facing the car driver. Also each car will be equipped with electronic id device. The entry bar will be connected to the system, and will be automatically raised, if the car and driver are both authorized.
The license plate cameras have to have a good false positive rate. The driver-side camera will not do face recognition at the beginning, but the client wants this to be an option for the near future.
The time it takes for one car to enter, is of great importance. The client needs to know this in detail.
There should be a “manual override” button on the screen, but the system should keep all details possible, guard details, time, date, car & license picture, etc.
The client will accommodate all data into their own facilities and infrastructure, but they will not provide any hardware/software for this project.
The guards will be trained accordingly if desired.
The data gathered should not be used for other purposes.
The staff, students, faculty, are really worried about their personal data, and how those
are going to be used. Some even claim that the data will be used to monitor their
working time.
Our company, is worried about the cost of this project, and we want to find innovative
ways to keep the cost low, so we can bid a lower price, and get a competitive advantage
against other bidders.
Our company also is not very experienced in such projects, and they hired you to “make
the difference”.
In: Computer Science
Find a method of ArrayList that is not in the List interface, specifically a method that trims the internal array down to fit exactly. A Google search for this did work, but the JDK API of course is the definitive source.
TestArrayList1
import java.util.ArrayList;
public class TestArrayList {
public static void main( String [ ] args )
{
ArrayList<String> array = new ArrayList<String>();
array.add("apple");
array.add("banana");
// Loop through the collection by index
for ( int i = 0; i < array.size( ); i++ ) {
System.out.println( array.get( i ) );
}
// Using the fact that Collections are Iterable
for (String s: array) {
System.out.println(s);
}
}
}
TestArrayList2
import java.util.ArrayList;
import java.util.Iterator;
public class TestArrayList2 {
public static void main( String [ ] args )
{
ArrayList<String> array = new ArrayList<String>();
array.add("apple");
array.add("banana");
// Loop through the collection by using an Iterator
Iterator<String> itr = array.iterator();
while (itr.hasNext()) {
System.out.println(itr.next() );
}
}
}
TestArrayList3
import java.util.ArrayList;
import java.util.ListIterator;
public class TestArrayList3 {
public static void main( String [ ] args )
{
ArrayList<String> array = new ArrayList<String>();
array.add("apple");
array.add("banana");
// Loop through the collection by using a ListIterator
ListIterator<String> itr = array.listIterator();
while (itr.hasNext()) {
System.out.println(itr.next() );
}
// going backwards:
ListIterator<String> itr2 = array.listIterator(array.size());
while (itr2.hasPrevious()) {
System.out.println(itr2.previous() );
}
// The listIterator is still alive--
System.out.println(itr2.next());
}
}
TestArrayList4
import java.util.ArrayList;
import java.util.ListIterator;
class TestArrayList4
{
public static void main( String [ ] args )
{
ArrayList<Integer> lst = new ArrayList<Integer>( );
lst.add( 2 );
lst.add( 4 );
ListIterator<Integer> itr1 = lst.listIterator( 0 );
System.out.print( "Forward: " );
while( itr1.hasNext( ) )
System.out.print( itr1.next( ) + " " );
System.out.println( );
System.out.print( "Backward: " );
while( itr1.hasPrevious( ) )
System.out.print( itr1.previous( ) + " " );
System.out.println( );
System.out.print( "Backward: " );
ListIterator<Integer> itr2 =
lst.listIterator( lst.size( ) );
while( itr2.hasPrevious( ) )
System.out.print( itr2.previous( ) + " " );
System.out.println( );
System.out.print( "Forward: ");
for( Integer x : lst )
System.out.print( x + " " );
System.out.println( );
}
}
In: Computer Science