Computer Programming (TKK-2144)
description
Transcript of Computer Programming (TKK-2144)
Computer Programming(TKK-2144)
13/14 Semester 1
Instructor: Rama OktavianEmail: [email protected] Hr.: M.13-15, W. 13-15 Th. 13-15, F. 13-15
Outlines
1. Introduction to Microsoft Excel
2. Introduction to Spreadsheet
Microsoft Excel
• Lesson 1: What’s changed, and why• Lesson 2: Get to work in Excel
Microsoft Excel 2007
What’s changed, and whyYes, there’s a lot of change in Excel 2007. It’s most noticeable at the top of the window.
But it’s good change.
The commands you need are now more clearly visible and more readily available in one control center called the Ribbon.
What’s on the Ribbon? The three parts of the Ribbon are tabs, groups, and commands.
1
2
3
Tabs: Tabs represent core tasks you do in Excel. There are seven tabs across the top of the Excel window.
Groups: Groups are sets of related commands, displayed on tabs.
Commands: A command is a button, a menu, or a box where you enter information.
A new viewTo see the new view, click Page Layout View on the View toolbar .
1
2
3
Column headings.
Row headings.
Margin rulers.
Here’s what you’ll see in the worksheet:
Microsoft ExcelThe Basics – Cell editing
A1
Introduction to Excel
In each cell there may be the following types of data • text (labels)• number data (constants)• formulas (mathematical equations that do all
the work)
Introduction to Excel
Introduction to ExcelWorking with formula
Formulas ALWAYS begin with an = sign. This “tells” Excel that a calculation will need to be performed.
Introduction to ExcelWorking with formula
The symbols for the operations are not all the same.
So to calculate 3x4
You would enter =3*4
And the spreadsheet would show “12”. (That’s the answer!)
Maths Symbol
Spreadsheet Symbol
+ +
- -
X *
÷ /
Introduction to ExcelWorking with formula
Using Built-in Functions• While editing a cell, choose Insert→Function, or click the function button
Introduction to ExcelFormatting cells
Fixed format
0.1 10%
0.13 1.3e-01
Useful for large text
Introduction to SpreadsheetWhat is a Spreadsheet?
A program that allows you to use data to forecast, manage, predict, and present information.
Introduction to SpreadsheetSpreadsheet uses
School: Student grades, payroll
Sports: individual and team statistics
Personal: checkbook, household expenses
Business: payroll, investments
Introduction to SpreadsheetSpreadsheet uses
Fact: the spreadsheet program, and primarilyMicrosoft Excel, is the most common computingtool used by the practicing chemical engineer.
Introduction to SpreadsheetTypes of ChE calculations carried out using Excel
General, small-scale, day-to-day calculations formula-based calculations data manipulation, graphics & statistics what-if scenarios and case studies
Flowsheet calculations material & energy balances vapor-liquid equilibrium chemical equilibrium & reaction kinetics detailed design of process equipment
Financial calculations project economics profit/cost optimization
Introduction to SpreadsheetProblem-solving capabilities of Excel
Advanced techniques use of Visual Basic for Applications [VBA] use of add-in products
[Solver, . . .] communication with other programs
[HYSYS, LabView, . . .]
Evaluation of engineering formulas Data handling and graphics Solution of algebraic equations Solution of differential equations Optimization calculations Applied statistics
Introduction to SpreadsheetExample Problem: Felder & Rousseau, 4.6-5Dehydrogenation of Propane
3 8 3 6 2C H C H H 95% overall conversionof propane
Separator produces 2 streams:Product: H2, C3H6,
0.555% of C3H8 leaving reactorRecycle: balance of unreacted C3H8
5% of C3H6 in Product stream
ReactorSep-ara-tor
Product
Recycle
Feed