Given the following revenue and cost functions, find the maximum profit.
R(x) = 71x - 2x^2; C(x) = 23x + 108
P(x) = Revenue - Cost
P(x) = 71x-2x^2 - (23x+108)
P(x) = -2x^2 + 48x - 108 *I am stuck right here. Using quadratic formula but cannot seem to solve it what I am doing...
hmm...probably missing some parentheses.
- - - Updated - - -
AHHH see my mistake! keep on making 11% in decimal form to .011 silly me (Drunk)(Drunk)(Drunk)
In order to purchase a home, a family borrows \$40,000 at an annual interest rate of 11%, to be paid back over a 30 year period in equal monthly payments. What is their monthly payment?
A) \$366.67 B) \$12.12 C) \$380.93 D) \$392.05
Using the Periodic Deposit for Monthly Amortize Payments...
In 6 years, Mattos Oil Refining Company wants to pay off a $50,000 debt in one lump sum amount. They must set up an account to accumulate the necessary funds to pay off their debt. If the payments are made every 6 months and the fund earns 9.6% compounded semiannually, what is the amount of each...
Thanks I figure it out my professor wasnt clear on what he wanted... He wanted to print out array that will have the same number.
int tArray(int arr[], int N)
{
cout << endl << endl;
cout << "Generate 5000 numbers: " << endl;
for(int i = 0; i < N; ++i)
{
arr[i] = 0;
cout << arr[i]...
I want to generate 500 numbers in an array but in order? For example I can generate 500 random numbers with this code but how will i be able to put it in order?
//code example
cout << "Generate 500 random numbers:" << endl;
const int nnn = 500;
int numberOfArray3[nnn];
for (i = 0; i <...
I have never done Java but my professor says it is similar to c++. I am trying to convert quicksort in java and covert it to c++.
I don't know if this is correct or not. Here is the code my professor gave us.
.....Java......
public static void quicksort(char[], int left, int right)
{
int...
Which has precedence over each other * / - + because i am working on this problem for c++ but without coding it but instead writing it out on paper. For example: 7+3*4/2-5-3+4
Which will have precedence - or /?