Assume four row
Write a single line of code to answer each of the following questions. You may use the results of any question to answer subsequent questions if desired. Note that your solutions should work regardless of the number of elements in the four vectors.
- a. Create a new vector AvgProd that contains the total number of each item produced during the four-year period. Note that TotalProd will have the same number of elements as the original four vectors.
- b. Create a new vector AvgProd that contains the average number produced per year of each item during the four-year period. Note that AvgProd will have the same number of elements as the original four vectors.
- c. Create a four-element column vector YearProd that contains the total number of all units produced during each year, 2010 production should be in the first (top) element.
- d. Determine the maximum number of any type of device produced during each year and place the results in a four-element column vector MaxProd.
- e. Determine the maximum number of any device produced during any year and place the result in the scalar OverallMax.
- f. If your company makes a profit of one-fifth of one cent on each device produced, regardless of type, determine the total profit made during this four-year period and place the result in Profit. Your result should be in dollars.
Want to see the full answer?
Check out a sample textbook solutionChapter 15 Solutions
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
- convert height to cm File Edit View Insert Format Data Tools 100% % .0 .00 123 D20 fx | A 1 5 feet 2 11 inches 3 cm 4 The preceding image shows a Google Sheet used to convert length in feet and inches to cm. What formula should be entered into A3 so that the correct length is computed in cm (in cell A3)? Your answer must work with any values the user might enter in cells A1 and A2. Choose all that apply a) = A1*12*2.54 + A2*2.54 b) = (5*12 + 11) * 2.54 %3D c) = B1*12*2.54 + B2*2.54 d) A1*12*2.54 + A2*2.54 e) = (A1*12 + A2) * 2.54 f) = A1*12 + A2 * 2.54 %24 田arrow_forwardI wanted to create two spheres that overlap each other in MATLAB. The image has my code and results. I only see one sphere in the results. Why is that? Can you give me the code that will create two overlaying spheres in one plot?arrow_forwardScenario You are assigned a role as a mechanical engineer for a vehicle design manufacturing company. Your department has a software to perform numerical differentiation and integration. To be able to verify the results of using the software and validate these results, your department manager has asked you to analytically perform some tasks to validate the results generated by the software. Q: is the last two digits of your student Id number. If your number is (20110092) then Q=92. P: is the last digit of your student Id Number. If your number is (20110092) then P=2, If that digit equals zero then use P=1. Example: If your number is (20110040) then P=1. Task 1 Determine the gradient of following functions at the given points: a) x(t) = (2t7 + P t-2)² + (6vi – 5) when t = 1 5s+7 b) v(s) = when s = 3 (s²-P)2 c) i(t) = 5(1 – In(2t – 1) ) when t= 1 sec. d) V(t) =5sin(100nt + 0.2) Volts , find i(t) = 10 × x10-6 dV©) Ampere when t= 1ms. dt e) y(t) = e¬(t-n) sin(Qt + P) when t = n radian f)…arrow_forward
- Grindwell, Inc., a manufacturer of grinding tools, is concerned about the durability of its products, which depends on the permeability of the sinter mixtures used in production. Suspecting that the carbon content might be the source of the problem, the plant manager collected the accompanying data. Click the icon to view the data table. a. Based on the data, choose the correct graph below. Question #2 O A. ОВ. C. D. 40- 6- 40- 20- 20 40 Carbon Content (%) 20 6. 40 Carbon Content (%) Permeability Index Permeability Index Permeability Index Permeability Index Carbon Content (%) Carbon Content (%)arrow_forwardFor Questions 3 and 4: A cup of water was heated to a temperature of 90°. It was placed in a refrigerator that had a temperature of 11°C. The water cooled to a temperature of 17°C in 30 minutes. Let the following variables represent the relevant quantities. L = Temperature of the liquid S= Temperature of the surroundings t = Time B = Initial temperature of the liquid (Temperature at t = 0 k = Cooling constant 3. Using the Equation Solver, find the value of k in the equation L = (B - S)e -kt + S. Remember to set the equation equal to zero and then enter it into the Solver.arrow_forwardAs an exercise, a student weighed several bunches of nails on a balance. The nails were not all the same size. Here are the student's data: 4. number of nails mass in grams 82 122 208 324 435 12 20 26 Prepare a plot of these data on the grid below or on the graph paper. Use "number of nails" as the independent variable and be certain to scale and label the axes correctly. Scale the axes starting at the origin; 0, 0. GO 20 向 12 円 Number of nails Cx) 2. 18 20 mass inarrow_forward
- A company finds that if they price their product at $ 65, they can sell 690 items of it. For every dollar increase in the price, the number of items sold will decrease by 10. What is the maximum revenue possible in this situation? (Do not use commas when entering the answer) $ What price will guarantee the maximum revenue? $ Submit Question 國山品 12 MacBook Air esc 吕口 F3 F2 F4 F7arrow_forward2:01 ul 4G 4. A sulms.su.edu.om While constructing a building, an engineer need to fix two steel beams together using a bracket as shown in Figure 1. Using absolute coordinate system, construct a G-code program for drilling hole number 3 only. To remove the metal chips the hole should be done in three equal steps. During the drilling, coolant should be on before spindle starts and stop after spindle stops. The spindle speed set to 1750 RPM. Drilling bit in rack number 2 and it should be 1 mm over the work piece. Drilling feed rate is 20 mm/min. Explain each code used in the program in a column 57.5- 12.5 Hole (4) Hole (3) 30 Hole (1) Hole (2) ΧΟ Υ0ΖΟ All dimensions shown are in mm Figure 1 B. -> 28 •..arrow_forwardUsing the graphical method, find the sum of the vectors in each number. Draw your vectors on a separate sheet of paper. Scale 10 units: 1cm 1. A box was pushed with a force of 20 Newtons to the right and 40 Newtons to the left. What is the sum of these vectors?arrow_forward
- 4:16 Search Expert Q&A Done Please solve question 16-109 below this in the follwoing way: • Please include a kinamatic diagram (one for velocity and one for acceleration). • Please DO NOT solve this using velocity analysis (cartesian vector analysis). I would like it to be solved using scalar method. We dont use 3D in this course. We only use scalar analysis for the relative velocity equation (writing the x and y components of the equation and solving the equations for the unknowns). I have attached a sample question with solution in order to get an idea on how to use the scalar method to solve my question. I would like question 16-109 to be solved in a similar way. Thank you for your understanding. If you can solve it as soon as possible that would be great and I will give you a thumps up and positive feedback :) 16-109. Member AB has the angular motions shown. Determine the angular velocity and angular acceleration of members CB and DC. 100 mm D 60° 450 mm W AB α AB 84 = 2 rad/s = 4…arrow_forward2. There were 42 mangoes in each crate. 12 such crates of mangoes were delivered to a factory. 4 mangoes were rotten and had to be thrown away. The remaining mangoes were packed into boxes of 10 mangoes each. Write a numerical expression in MATLAB syntax to represent this situation and then find how many boxes of mangoes were there? OFocus 4:20 AM 28°C Mostly clear 3/26/2022 LG CVENUENS THANOS BOBBLEHEAD AMANLANTE A ON CABIA ANn POCKET YOP! AVENGES KEYCHAIN INFINITY WAR Handy Fan THANOS BOBBLE HEAD IGENA ERANLIA P COs CA ANarrow_forwardAs the potential across the resistor increased, the current through the resistor increased. If the change in current is proportional to the voltage, the data should be in a straight line and it should go through zero. In these two examples how close is the y-intercept to zero? Is there a proportional relationship between voltage and current? If so, write the equation for each run in the form potential = constant x current. (Use a numerical value for the constant.)arrow_forward
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY