in c++ a Circle should be created with the default constructor, then its area, diameter, and circumference printed to the screen for verification that it has the correct state and those respective methods work correctly. Then, output of the state should be repeated after calling each mutator to ensure that the object’s new state reflects the change
Create a Circle class with the class implementation in a file named circle.cpp and the class declaration in a file named circle.h (or circle.hpp) with
- private data member for double parameter: ‘radius’
- a default constructor which has no parameters
- an overloaded constructor which takes in a single double parameter for ‘radius’
-accessor and mutator for ‘radius’ named getRadius(…) and setRadius(…)
- member functions to return doubles for calculated parameters: area( ), diameter( ) and circumference( ) PI should be assumed to be exactly 3.141592. You may define this as a static const double at the class scope, as a const double inside any method that uses it, or as a literal in the expression in which it’s used
In: Computer Science
What is semaphore? List the properties of semaphore variables. Define the wait function wait(s).
In: Computer Science
2. Set up both the vector of state probabilities and the matrix of transition probabilities given the following information: Store 1 currently has 40% of the market; store 2 currently has 60% of the market. In each period, store 1 customers have an 80% chance of returning; 20% of switching to store 2.
In each period, store 2 customers have a 90% chance of returning; 10% of switching to store 1. a.
Find the percentage of market for each store after 2 periods. b. Find the equilibrium conditions of 2 stores (limiting probabilities). What’s the meaning of these probabilities?
In: Math
What social factors affect your family life? In what ways is your family life different from that of your grandparents when they were your age?
In: Psychology
No phot or handwriting (managerial accounting)
You are also required to compare the Flexible Budget with your Actual Results showing the Variance in a tabular form.
In: Accounting
Design a class named Account (put it in a package named accountspackages) with the following UML diagram:
Account |
-customerID: int -customerName: String -balance: double |
+setCustomerID(int): void +setCustomerName(String): void +setBalance(double):void +getCustomerID(): int +getCustomerName(): String +getBalance(): double +deposit(double): void +withdraw(double): void +printInformation():void |
The method withdraw(double) withdraws a specified amount from the account if the amount is less than or equal the balance, otherwise the method prints the message:
Sorry! The account does not have sufficient funds.
The method printInformation() prints:
the customerName, the customerID, and the account balance.
Test the Account class by running the following code
(You are not allowed to modify this code):
package accountsdemocom;
public class AccountDemo{
public static void main(String[] args) {
Account accountOne = new Account();
Account accountTwo = new Account();
accountOne.setCustomerID(78654);
accountOne.setCustomerName("John Smith");
accountOne.deposit(10000.0);
accountOne.withdraw(25000.0);
accountTwo.setCustomerID(76234);
accountTwo.setCustomerName("Jennifer Harris");
accountOne.deposit(2000.0);
accountOne.withdraw(150.0);
accountOne.printInformation();
accountTwo.printInformation();
accountOne.withdraw(250.0);
accountOne.getBalance();
}
}
In: Computer Science
Write a regular expression, using the regular expression syntax used by lex, that matches any finite decimal representation of a nonnegative real number.
In: Computer Science
Calisto Launch Services is an independent space corporation and
has been contracted to develop and launch one of two different
satellites. Initial equipment will cost $740,000 for the first
satellite and $810,000 for the second. Development will take 5
years at an expected cost of $150,000 per year for the first
satellite; $80,000 per year for the second. The same launch can be
used for either satellite and will cost $225,000 at the time of the
launch 5 years from now. At the conclusion of the launch, the
contracting company will pay Calisto $2,350,000 for either
satellite.
Calisto is also considering whether they should consider launching
both satellites. Because Calisto would have to upgrade its
facilities to handle two concurrent projects, the initial costs
would rise by $190,000 in addition to the first costs of each
satellite. Calisto would need to hire additional engineers and
workers, raising the yearly costs to a total of $380,000. An
additional compartment would be added to the launch vehicle at an
additional cost of $35,000. As an incentive to do both, the
contracting company will pay for both launches plus a bonus of
$800,000. Using a present worth analysis (PW) with a MARR
of 7.00 percent/year, what should Calisto Launch Services do?
(Do all calculations to 5 decimal places and round final answer to 2 decimal places in terms of k (1 k = 1,000). Tolerance is +/- 1.00.
(I) Calculate PW of first satellite
$
(in thousands)
(II) Calculate PW of second satellite
$
(in thousands)
(III) Calculate PW of both satellites
$
(in thousands)
In: Finance
The Clarkstown Central School District covers 4 towns. There are 22 members of the school board, and the 4 towns have the populations shown in the following:
Population
Town A 9,000
Town B 9,100
Town C 25,475
Town D 56,425
The school district uses the Hamilton method to apportion its 22 board members to the 4 towns.
How many board members are assigned to each town, using this method?
The following year, 1,000 people move out of town A and into town D. Now, how many board members does each town have?
In: Advanced Math
Microsoft has an equity value of $250B, but has only $10B in debt. Management decides they’d like to increase the D/(D+E) ratio to 40% and use the proceeds to repurchase shares of equity, i.e. a leveraged recapitalization.
a) Before the recapitalization, the debt is considered risk-free
and the equity has a beta of 1.13; afterwards, the debt beta
becomes 0.3. How much debt does Microsoft issue? By how much has
this restructuring changed the riskiness of equity in Microsoft,
i.e. what is
the equity beta after the recapitalization?
b. If the risk-free rate is 3% and the expected market return is
9%, what are the expected
returns to equity holders before and after the
recapitalization?
Please answer all parts of this question.
In: Finance
In: Finance
Consider the following list of names: PEVAC, MARKOV, ZLATAREVA, ABDOLLAHZADEH, CHEN, WILLIAMS, ALBAYRAM, KURKOVSKY, ZABIHIMAVAN. Use Radix sort to sort them in alphabetic order. How many passes would be made through the outer while loop? Trace the contents of the list after each of these passes.
In JAVA!
In: Computer Science
In: Math
Perini Corp is considering a project that has been assigned a discount rate of 14 percent. If the company starts the project today, it will incur an initial cost of $860,000 and will receive cash inflows of $287,000 a year for five years. If the company waits one year to start the project, the initial cost will rise to $988,000 and the cash flows will increase to $341,000 a year for five years. What is the value of the option to wait?
$42,616.74
$38,702.16
$34,951.91
$30,373.29
$26,800.35
In: Finance
Maytag Company is analyzing a proposed 5-year project using standard sensitivity analysis. The company expects to sell 18,000 units, ±5 percent. The expected variable cost per unit is $10.50 and the expected fixed costs are $28,000. The fixed and variable cost estimates are considered accurate within a ±5 percent range. The sales price is estimated at $16.70 a unit, ±5 percent. The project requires an initial investment of $198,000 for equipment that will be depreciated using the straight-line method to zero over the project's life. The equipment can be sold for $25,000 at the end of the project. The project requires $20,000 in net working capital up front. The discount rate is 14 percent and tax rate is 25 percent. What is the operating cash flow in year 2 under the optimistic case scenario?
$101,218 |
||
$97,113 |
||
$92,346 |
||
$87,595 |
||
$107,431 |
In: Finance