![EBK THINKING LIKE AN ENGINEER](https://www.bartleby.com/isbn_cover_images/8220103633512/8220103633512_largeCoverImage.jpg)
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 17 Solutions
EBK THINKING LIKE AN ENGINEER
- Solve this problem and show alll of the workarrow_forwardI need drawing solution,draw each one by one no Aiarrow_forwardQu. 17 Compute linear density values for [100] for silver (Ag). Express your answer in nm''. . Round off the answer to three significant figures. Qu. 18 Compute linear density value for [111] direction for silver (Ag). Express your answer in nm'. Round off the answer to three significant figures. Qu. 19 Compute planar density value for (100) plane for chromium (Cr). Express your answer in nm?. Round off the answer to two significant figures. Qu. 20 Compute planar density value for (110) plane for chromium (Cr). Express your answer in nm ≥ to four significant figures. show all work please in material engineeringarrow_forward
- Large wind turbines with a power capacity of 8 MW and blade span diameters of over 160 m areavailable for electric power generation. Consider a wind turbine with a blade span diameter of 120m installed at a site subjected to steady winds at 8.25 m/s. Taking the overall efficiency of thewind turbine to be 33 percent and the air density to be 1.25 kg/m3, determine the electric powergenerated by this wind turbine. Also, assuming steady winds of 8.25 m/s during a 24-h period,determine the amount of electric energy and the revenue generated per day for a unit price of$0.08/kWh for electricity.arrow_forwardThe basic barometer can be used to measure the height of a building. If the barometric readingsat the top and at the bottom of a building are 672 and 696 mmHg, respectively, determine theheight of the building. Take the densities of air and mercury to be 1.18 kg/m3 and 13,600 kg/m3,respectivelyarrow_forwardA 7.25-hp (shaft) pump is used to raise water to an elevation of 17 m. If the mechanical efficiencyof the pump is 84 percent, determine the maximum volume flow rate of water.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)