![Thinking Like an Engineer](https://www.bartleby.com/isbn_cover_images/9781269910989/9781269910989_largeCoverImage.gif)
A sample of the data provided in the Microsoft Excel file EnergyData.xlsx online follows. The file contains energy consumption data by energy source per year in the United States, measured in petaBTUs.
a. Write the MATLAB code necessary to read the Microsoft Excel file and store each column of data into different variables. Create the following:
- Yr: A vector of all of the years in the worksheet.
- FF: A vector of all of the fossil fuels for each year in Yr.
- ENI: A vector of all electric imports for each year in Yr.
- Nuc: A vector of all nuclear energy consumption for each year in Yr.
- Ren: A vector of all renewable energy consumption for each year in Yr.
- Hdr: A cell array of all of the headers in row 1.
You may not hard-code these variables—they should be imported from the Excel file.
b. Create a new variable. Totalconsumption, which contains the sum of the four columns of energy consumption data for each year. In other words, since all five of the
c. Calculate the average fossil fuel consumption in the entire data set. For this code, you may assume that you have correctly defined FF, the variable containing the fossil fuel consumption data, in part (a). Display the result of the calculation in the following format, where the number is shown to two decimal places:
The average fossil fuel consumption is _____ petaBTU.
![Check Mark](/static/check-mark.png)
Want to see the full answer?
Check out a sample textbook solution![Blurred answer](/static/blurred-answer.jpg)
Chapter 18 Solutions
Thinking Like an Engineer
- Show all work pleasearrow_forwardDraw top, side, front view With pen(cil) and paper Multi view drawing and handwriting all of itarrow_forwardA wheel of diameter 150.0 mm and width 37.00 mm carrying a load 2.200 kN rolls on a flat rail. Take the wheel material as steel and the rail material as cast iron. Assume the figure given, which is based on a Poisson's ratio of 0.3, is applicable to estimate the depth at which the maximum shear stress occurs for these materials. At this critical depth, calculate the Hertzian stresses σr, σy, σz, and Tmax for the wheel. 1.0 0.8 0, т Ratio of stress to Pmax 0.4 0.6 90 69 0.2 0.5b b 1.5b Tmax 2b Distance from contact surface The Hertizian stresses are as follows: 02 = or = -23.8 psi for the wheel =| necessary.) σy for the wheel =| MPa σz for the wheel = MPa V4 for the wheel = | MPa 2.5b ཡི 3b MPa (Include a minus sign ifarrow_forward
- 4. Solve for the support reactions at A and B. W1 600 lb/ft W2 150 lb/ft A Barrow_forwardIn cold isostatic pressing, the mold is most typically made of which one of the following: thermosetting polymer tool steel sheet metal textile rubberarrow_forwardThe coefficient of friction between the part and the tool in cold working tends to be: lower higher no different relative to its value in hot workingarrow_forward
- The force F={25i−45j+15k}F={25i−45j+15k} lblb acts at the end A of the pipe assembly shown in (Figure 1). Determine the magnitude of the component F1 which acts along the member AB. Determine the magnitude of the component F2 which acts perpendicular to the AB.arrow_forwardHi can you please help me with the attached question?arrow_forwardHi can you please help me with the attached question?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
![Text book image](https://www.bartleby.com/isbn_cover_images/9780190698614/9780190698614_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9780134319650/9780134319650_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781259822674/9781259822674_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781118170519/9781118170519_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337093347/9781337093347_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781118807330/9781118807330_smallCoverImage.gif)