Assuming that this company sells all that it produces, the profit function would be given by P(x) = -0.5(x - 100)² + 5,000 - 50x - 100.
<h3>What is profit?</h3>
In Economics, profit can be defined as a measure of the amount of money (revenue) that is generated when the selling price is deducted from the cost price of a good or service, which is usually provided by producers.
This ultimately implies that, all producers generally work to maximize their profits and make them as large as possible, in order to enable them break even and successful.
Mathematically, the profit function P(x) of a business firm simply refers to the revenue function R(x) minus the cost function C(x):
P(x) = R(x) - C(x)
Where:
- R(x) represents how much it takes in.
- C(x) represents how much it spends.
Substituting the given parameters into the formula, we have;
P(x) = -0.5(x - 100)² + 5,000 - (50x + 100)
P(x) = -0.5(x - 100)² + 5,000 - 50x - 100
Read more on maximized profit here: brainly.com/question/13800671
#SPJ1
Answer:
Explanation:
Since all of the items in the array would be integers sorting them would not be a problem regardless of the difference in integers. O(n) time would be impossible unless the array is already sorted, otherwise, the best runtime we can hope for would be such a method like the one below with a runtime of O(n^2)
static void sortingMethod(int arr[], int n)
{
int x, y, temp;
boolean swapped;
for (x = 0; x < n - 1; x++)
{
swapped = false;
for (y = 0; y < n - x - 1; y++)
{
if (arr[y] > arr[y + 1])
{
temp = arr[y];
arr[y] = arr[y + 1];
arr[y + 1] = temp;
swapped = true;
}
}
if (swapped == false)
break;
}
}
Answer:
def replace_at_index(str, number):
new = str.replace(str[number], "-")
return new
print(replace_at_index("eggplant", 3))
Explanation:
- Create a function called <em>replace_at_index</em> that takes a string and an integer
- Initialize a new variable called <em>new</em>, that will hold the new string
- Replace the character at given index with dash using <em>replace</em> function, it takes two parameters: the first is the character we want to replace, the second is the new character.
- Return the new string
- Call the function with the required inputs
I guess the correct answer is Embedded system.
Systems such as smartphones, appliances, game controllers, cable set-top boxes and automobiles that contain small computers are called Embedded systems.