A Comparative Study of Energy Usage by America and Japan, Over a Ten Year Period Team Members Jessica Wilson Lee Smalls Jr. Anisah Nu’Man Joan Kibaara.

Slides:



Advertisements
Similar presentations
LOGO A Comparative Study of Energy Usage by American and Japan, over the last Ten Years Joan Kibaara (LU) :: Anisah Nu’Man (SC) :: Lee Smalls Jr. (ECSU)
Advertisements

File Input/Output. External Files Batch –Requires use of data files (save to disk) –Batch can be run during off peak use –allows things to be complete.
CS 1620 File I/O. So far this semester all input has been from keyboard all output has been to computer screen these are just two examples of where to.
1 Text File I/O Chapter 6 Pages File I/O in an Object-Oriented Language Compare to File I/O in C. Instantiate an ofstream object. Like opening.
1 Engineering Problem Solving With C++ An Object Based Approach Chapter 4 Programming with Data Files.
Contents  Introduction to Cold Fusion  Background and History  Practical Uses and Problems  The Need for an Alternative Energy Source  Promises for.
1 Programming with Data Files Chapter 4 2 Standard Input Output C++ Program Keyboard input cin Output Screen cout.
1 Programming with Data Files Chapter 4. 2 Standard Input Output C++ Program Keyboard input cin Output Screen cout.
Regression line – Fitting a line to data If the scatter plot shows a clear linear pattern: a straight line through the points can describe the overall.
File I/O Supplemental Material. Background In C++, files can be manipulated in the same manner we manipulate streams such as: cout and cin. Therefore,
Programming with Data Files Chapter 4. Standard Input Output C++ Program Keyboard input cin Output Screen cout.
Energy Resources Senior Seminar: Spaceship Earth Summer 2008.
© 2012 Pearson Education, Inc. { Chapter 23 Electric Potential (cont.)
Changing Patterns of Oil Consumption. Spec Analyse the global patterns and trends in the production and consumption of oil. 2 hours.
Energy Consumption and Production Trends By: Yu Kuwabara Brian Ponczak February 27, 2002.
Read pages
Chapter 3 Interactivity and Expressions CSC 125 Introduction to C++ programming.
GIS Web Application Development Team Team Mentor Joe Ausby Team Members Akeem B. Archer Lee A. Smalls Jr.
Linear Models and Scatter Plots Digital Lesson. Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 2 x 24 –2–2 – 4 y A scatter plot.
Dr. Fowler AFM Unit 8-5 Linear Correlation Be able to construct a scatterplot to show the relationship between two variables. Understand the properties.
Linear Models and Scatter Plots Objectives Interpret correlation Use a graphing calculator to find linear models and make predictions about data.
CS Class 13 Today  File I/O (reading from and writing to files)  Reading until EOF  Formatting output  Nested Loops Announcements  Programming.
B A R R I E R S T O E N E R G Y A D O P T I O N I N P O R T L A N D QUESTION METHODOLOGY BACKGROUND RESULTS What barriers exist that discourage consumers.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 12 Statistics.
Lecture 6: Expressions and Interactivity (Part II) Professor: Dr. Miguel Alonso Jr. Fall 2008 CGS2423/COP1220.
Residential Heating and Cooling Prepared by: Will George Ryan Lester.
Energy, Economy, Population Yu Kuwabara Submitted to Prof. Husar Sustainable Air Qualtiy
Define our own data types We can define a new data type by defining a new class: class Student {...}; Class is a structured data type. Can we define our.
Copyright © 2011 by Oxford University Press, Inc. Energy and the Environment James A. Fay / Dan S. Golomb FIGURE 2.8 Trend of annual U.S. energy consumption.
Computer Programming TCP1224 Chapter 13 Sequential File Access.
Tracing through E01, question 9 – step 1 // p02.cc P. Conrad, for CISC181 07S // Exam question for E01 #include using namespace std; void mysteryFunction(int.
1 Original Source : and Problem and Problem Solving.ppt.
File I/O in C++ II. Open() function Open() is a member function in each classes ( fstream, ifstream, ofstream) Void fstream :: open ( const char *filename,
Oil and other are the two primary contributors for VOC. Both of them peaked around 1970 and have both been on the decline since The level of pollution.
By: Fawaz and Sam G..  The Unites States of America is a country surrounded by water. Above the USA is Canada, and is Mexico. The capitol of the USA.
1 Cannon_Chapter9 Strings and the string Class. 2 Overview  Standards for Strings  String Declarations and Assignment  I/O with string Variables 
Chapter 3 Working with Batches of Data. Objectives Understand vector class and how it can be used to collect, store and manipulate data. Become familiar.
GE 211 Dr. Ahmed Telba. // compound assignment operators #include using namespace std; int main () { a =5 int a, b=3; a = b; a+=2; // equivalent to a=a+2.
Quiz 2 Results. What Is Wrong? #include using namespace std int Main() { // Say Hello 4 times for(i == 0; i < 3; i++) { cout >> "Hello World!"
Think First, Code Second Understand the problem Work out step by step procedure for solving the problem (algorithm) top down design and stepwise refinement.
6.7 Scatter Plots. 6.7 – Scatter Plots Goals / “I can…”  Write an equation for a trend line and use it to make predictions  Write the equation for a.
What is a symbol?.
C++: Functions, Program Compilation, Libraries Modified from CS101 slides, which are by JPC and JWD © 2002 McGraw-Hill, Inc.
File I/O in C++. Using Input/Output Files A computer file  is stored on a secondary storage device (e.g., disk);  is permanent;  can be used to provide.
Writing to Files and Reading From Files. Writing Data to a File Creating a new file, a.dat or.txt file #include #include // for file writing #include.
File I/O in C++ I. Using Input/Output Files A computer file is stored on a secondary storage device (e.g., disk); is permanent; can be used to provide.
Array. Array is a group of data of the same type. Array elements have a common name –The array as a whole is referenced through the common name Individual.
U.S. Energy Information Administration Independent Statistics & Analysis North American Energy Markets for Energy Mexico 2016 January 26, 2016|
A Comparative Study of Energy Usage by American and Japan, Over the Last Ten Years Team Members Jessica Wilson Lee Smalls Jr. Anisah Nu’Man Joan Kibaara.
Alexander Jonathan Mr. Swatek’s English 7 June 29, 2016 “The Monsters Are Due on Maple Street” Literary Term: Setting The History Behind.
File Processing.
Elementary Statistics
Parallel Arrays Parallel array =>Two or more arrays with the same number of elements used for storing related information about a collection of data. Example:
FILE INPUT OUTPUT Skill Area 315 Part B Materials Prepared by
group work #hifiTeam
Lesson 1.7 Linear Models and Scatter Plots
Random Number Generation
DSP Lab. Week 1 Drawing sinusoidal waves
More About File Reading
Starting Out with C++: From Control Structures through Objects
Text Files All the programs you've seen so far have one thing in common: Any data the program uses or calculates is lost when the program ends. In order.
Strings and Streams Professor Hugh C. Lauer CS-2303, System Programming Concepts (Slides include materials from The C Programming Language, 2nd edition,
Chapter 9 File Streams Computing Fundamentals with C++ 3rd Edition
Formatted Input, Output & File Input, Output
CHAPTER 4 File Processing.
Programming with Data Files
C++ Programming Lecture 8 File Processing
File I/O in C++ II.
Lecture 9 Files Handling
Text Files.
Presentation transcript:

A Comparative Study of Energy Usage by America and Japan, Over a Ten Year Period Team Members Jessica Wilson Lee Smalls Jr. Anisah Nu’Man Joan Kibaara Donnell Terry

 In this study a comparison of consumption of various forms of energy by America and Japan, is made for the years 1996 through The existing data of annual usage of oil, natural gas, coal and electricity by America and Japan, will be prorated for 1000 population and a regression analysis is performed, for each form. It is found that per 1000 population for each of oil, natural gas and coal there is a negative relation for consumption by America and Japan and electricity consumption is positive. The correlation coefficients for the decreasing trend for oil, natural gas and coal and increasing trend for electricity are not significant to conclude that a pattern exists for comparison.

 Prorated consumption formula  Used to calculate the consumption of energy for every one thousand population.

US Consumption US Prorated US Population YearOilNatural GasCoalElectricity YearOilNatural GasCoalElectricity YearPopulation ,814, ,954, ,311, ,639, ,562, ,058, ,562, ,342, ,027, ,734,134

Japan Consumption Japan Prorated Japan’s Population YearOilNatural GasCoalElectricity YearOilNatural GasCoalElectricity YearPopulation ,506, ,732, ,931, ,182, ,549, ,771, ,974, ,214, ,333, ,417,244

 #include  using namespace std;   int main()  {  ifstream infile;  ofstream outfile;   float USAOil, USANG, USACoal, USAElec, USAOPT, USANGPT, USACPT, USAEPT;  float Oil,JNG, JCoal, JElec, JOPT, JNGPT, JCPT, JEPT;  int Year, USAPop, JPop;  infile.open("c:\\project1\\USAinput.txt");  outfile.open("c:\\project1\\USAoutput.txt");   if (!infile) {  cout << "Cannot find file"<< endl;  }  else  outtfile<<"The prorated data for USA is as follows"<<endl;  outfile<<endl; outfile<<"YEAR"<<setw(20)<<"OIL"<<setw(20)  <<"NATURALGAS"<<setw(20)<<"COAL"<<  setw(20)<<"ELECTRICITY\n";   for(int i=0; i<10; i++) {  infile>>Year>>USAPop>>USAOil>>USANG>>USACoal>>USAElec;   USAOPT = (USAOil/USAPop)* 1000;USANGPT = (USANG/USAPop) * 1000;  USACPT = (USACoal/USAPop)* 1000;  USAEPT = (USAElec/USAPop)* 1000;  outfile<<Year<<setw(20)<<USAOPT<<setw(20)  <<USANGPT<<setw(20)<<USACPT<<setw(20)<<USAEPT<<endl;  }  infile.close();  outfile.close();

 infile.open("c:\\project1\\JAPANinput.txt");  outfile.open("c:\\project1\\JAPANoutput.txt");   if (!infile) {  cout << "Cannot find file"<< endl;  }  else  outfile<<"The prorated data for JAPAN is as follows"<<endl;  outfile<<endl;  outfile<<"Year"<<setw(20)<<"JOPT"<<setw(20)<<"JNGPT"<<setw(20)<<"JCPT"<<setw(20)<<"JEPT\n";   for(int j=0; j >Year>>JPop>>JOil>>JNG>>JCoal>>JElec;   JOPT = (JOil/JPop)* 1000;  JNGPT = (JNG/JPop) * 1000;  JCPT = (JCoal/JPop)* 1000;  JEPT = (JElec/JPop)* 1000;   outfile<<Year<<setw(20)<<JOPT<<setw(20)<<  JNGPT<<setw(20)<<JCPT<<setw(20)<<JEPT<<  endl;  }   infile.close();  outfile.close();   return 0;  }

 We used data from the Energy Information Association (EIA) to compare the energy consumption of the US and Japan. In order to find the consumption for every one thousand people, we took the consumption for each source of energy, and multiplied by one thousand. After getting the results, we then divided by the population into 1000, which gave us a level field for comparison. From the data we collected we can identify a trend of how much energy is being used by both nations. The data shows that as the population increased year by year, the consumption of most energy sources increased also.

 The US consumption of coal, electricity, and oil has increased since Natural gas consumption is the only source of energy that has decreased since the mid 90’s. In contrast to the US, Japan’s oil consumption has steadily been decreasing from 1996 to On the other hand Japan’s usage of coal, natural gas, and electricity has been increasing. With the consumption of energy for every one thousand population, we were able to compare the consumption of energy for both countries by using regression plots.

 The regression plots allow us to determine whether a correlation exists between the energy usage of Japan and the US. Overall we were able to conclude that no systematic comparison can be made between the energy usage of Japan and America, while there exist negative relations for oil, natural gas and coal usage between America and Japan per one thousand population and a positive relation for electricity.

 The American Heritage® Dictionary of the English Language, Fourth Edition. Houghton Mifflin Company, Retrieved May 20,  Energy Information Administration. United States Energy Profile Retrieved May 15,  Energy Information Administration. Japan Energy Profile Retrieved  Retrieved May 21, 2008, from

 Our thanks to Elizabeth City State University’s CSSV Center, the National Association of Mathematicians Inc. (NAM), the Department of Energy (DoE), Dr. J. Houston, Dr. Kulkarni, Dr. Chandler, Dr. Bland, Dr. Alexander, Dr. Lawrence, Dr. Luttamaguzi, Mr. K. Jones, Mr. Lee Hayden, and Ms. Johnson for allowing use to participate in an Undergraduate Research Program.