Birch Company normally produces and sells 40,000 units of RG-6 each month. The selling price is $32 per unit, variable costs are $20 per unit, fixed manufacturing overhead costs total $140,000 per month, and fixed selling costs total $30,000 per month. The pandemic has caused the companies that purchase the bulk of the RG-6 units to withdraw orders, so Birch Company’s sales temporarily drops to only 10,000 units per month. Birch Company estimates that the effects of pandemic will last for five months, after which time sales of RG-6 should return to normal. Due to the current low level of sales, Birch Company is thinking about closing down its own plant during the pandemic, which would reduce its fixed manufacturing overhead costs by $120,000 per month and its fixed selling costs by 80% per month. Start-up costs at the end of the shutdown period would total $18,000, and an additional…
Write a program where you can enter an ellipse equation and a straight line equation (each in coordinate form).
Write a program where you can enter an ellipse equation and a straight line equation (each in coordinate form). If nothing is entered, use the values 16*x**2 + 9*y**2 = 144 and -x + y = 5. With the help of sympy.sympify you can convert the input into a SymPy expression and then use SymPy to calculate the intersection points of the straight line and ellipse. Now indicate whether the straight line entered is a secant, a tangent or a passersby of the ellipse entered. Plot both using sympy.plotting.plotimplicit or use matplotlib if you prefer. However, the straight line and the ellipse should be plotted together.
Write a program that determines the Riemann integral of a function f on the interval [0,1] in different ways.
Write a program that determines the Riemann integral of a function f on the interval [0,1] in different ways.Output the results of the calculations and the plot for the function f= sin(πx) as an example. First divide the interval into n equal sub intervals and then determine the values of the corresponding upper and lower sums Now calculate the integral of f symbolically using SymPy and numerically using np.trapz() and again output the results using the example f= sin(πx).Plot the function f and the staircase functions belonging to the upper and lower sum using Matplotlib (all together in one plot).
Write a program that encodes an input plaintextxwith a one-time pad.Start by assigning a number to each letter,a→0,…,z→25, using string.asciilowercase to get the alphabet.
Write a program that encodes an input plaintextxwith a one-time pad.Start by assigning a number to each letter,a→0,…,z→25, using string.asciilowercase to get the alphabet. For simplicity, you can assume that x contains only the letters a,b,c,…z.First write two functions that you can use to convert a given text intoa list of numbers (and back to the ̈uck).Now you can encode the plaintext by linking it to the one-time pad. Use a list of random numbers from 0 to 25 as the one-time pad, which is exactly as long as the plaintext x to be encrypted. To encrypt, calculate (digit by digit) x⊕p, where ⊕ means a bitwise xor ˆ. Now output the generated ciphertext y to the user.The programme should also be able to decrypt again. What plaintext do you get if you give y = [21, 16, 20, 4, 22, 6, 14, 2, 2, 29, 17, 5, 16,27, 20,…
A donut is defined by the following parameter representation: Write a classDonut whose constructor takes over R and r. ̈Consider sensible default values.
A donut is defined by the following parameter representation: Write a classDonut whose constructor takes over R and r. ̈Consider sensible default values. If R > r does not apply, then issue a warning to the user and adjust R so that the assurance is fulfilled.Use NumPy to implement the methods for x,y and z.Find out how to calculate the surface area and volume of the donut and implement both methods.The method ___str___ should return a string repr ̈presentation. Also implement the operator>: one donut should be larger than the other if its volume is larger.Plot the donut on the screen with the method show and the matplotlib (tip: the NumPy function meshgrid is helpful here). Set the boundaries for the three axes so that the donut fits well in the plot window, turn off the axis labels and use the OrRd colormap. Set the viewing height of the plot…
Create a list of the respective energy values for a mini-drone with a mass of 250g, a midi-drone with a mass of 570g and a maxi-drone with a mass of 900g for the heights 1 to 120 metres (step size 1m).
Attention:You must not use loops in this task! A drone of massem(in kilograms) has a potential energy (in joules) of E=mgh(gis the acceleration due to gravity ofrounded 9.81m/s2) at height h (in metres). Create a list of the respective energy values for a mini-drone with a mass of 250g, a midi-drone with a mass of 570g and a maxi-drone with a mass of 900g for the heights 1 to 120 metres (step size 1m). Plot the list with Matplotlib so that the x- and y-axis start at 1 (and end at sensible maximum values) and the values as points of three different colours are plotted. Add a title and axis labels. At what height do the three drones exceed 79J? Give the result in one line in text form. Our mini-drone flies at a height of 30m with a horizontal speed of 10m/s. The battery runs out and the drone…
You are now conducting the third family session with the Robertsons. The father has been ordered by the court to participate.
After they have finished writing their statements, they read them aloud. Marie states, “Well, when my son asks me to help him with his homework, I tell him ‘in just a minute,’ and I never get around to it.