The second kind of control structure in GWBASIC is condition or decision making. In GWBASIC we use If.. Then.. Else statement. 2 ) If.. Then …Else The.

Slides:



Advertisements
Similar presentations
3 hr 5 hr 8 hr Hours worked Charge
Advertisements

Artrelle Fragher & Robert walker. 1 you look for the median 1 you look for the median 2 then you look for the min and max 2 then you look for the min.
第十一章 心 悸 《急诊医学》.
Lecture 9 Regression Analysis.
ThemeGallery PowerTemplate
Name: Date: Read temperatures on a thermometer Independent / Some adult support / A lot of adult support
Figure 1 AB Liver TG (µg/µg prot) PPAR # C Liver Mac1 staining (cells/mm²) +/++/--/- PPAR D NS Plasma TG (mg/dL) +/++/--/- PPAR.
2008 ACTION Registry ® -GWTG 2 nd Quarter Results.
Ozone Level ppb (parts per billion)
Demonstration Problem
Win Big AddingSubtractEven/Odd Rounding Patterns Q $100 Q $200 Q $300 Q $400 Q $500 Q $100 Q $200 Q $300 Q $400 Q $500 Last Chance.
Multiplication X 1 1 x 1 = 1 2 x 1 = 2 3 x 1 = 3 4 x 1 = 4 5 x 1 = 5 6 x 1 = 6 7 x 1 = 7 8 x 1 = 8 9 x 1 = 9 10 x 1 = x 1 = x 1 = 12 X 2 1.
Division ÷ 1 1 ÷ 1 = 1 2 ÷ 1 = 2 3 ÷ 1 = 3 4 ÷ 1 = 4 5 ÷ 1 = 5 6 ÷ 1 = 6 7 ÷ 1 = 7 8 ÷ 1 = 8 9 ÷ 1 = 9 10 ÷ 1 = ÷ 1 = ÷ 1 = 12 ÷ 2 2 ÷ 2 =
Math Expressions How does it all work together…?.
| Slide 1 SEEAW Emission Accounts Calculation Examples and Supplementary Information Chile, 1-4 June, 2009 Technical Workshop on the Preparation.
Graphing Linear Inequalities in Two Variables
Half Life. The half-life of a quantity whose value decreases with time is the interval required for the quantity to decay to half of its initial value.
A4.e How Do I Graph The Solution Set of A Linear Inequality in Two Variables? Course 3 Warm Up Problem of the Day Lesson Presentation.
1 1  1 =.
1  1 =.
CLASSIFY SIDES PYTHAGOREAN THEOREM CLASSIFY ANGLES SIMPLIFY RADICALS MISC
Hosted By Prissy & Stephy Multiplying exponents Negative exponents Dividing exponent percents
Year 6 mental test 15 second questions Numbers and number system Numbers and the number system, Measures and Shape.
Multi Beamlett Extraction Experiments and Sector Magnet Field Investigation.
Who Wants To Be A Millionaire?
Who Wants To Be A Millionaire?
Can you explain the ideas
Fractions mean division. 1 4 of 28 =28 ÷ 4=7 How would you find out what of 28 is? 3 4.
Word problems. Measurement. (Length)
£1 Million £500,000 £250,000 £125,000 £64,000 £32,000 £16,000 £8,000 £4,000 £2,000 £1,000 £500 £300 £200 £100 Welcome.
Fig. 1. Ms.: Stratified prokaryote network …… by Daffonchio et al., 2004 b a Conductivity [mS cm -1 ] Water depth (m) 40.
Risk, Return, and the Time Value of Money
COST-VOLUME-PROFIT (CVP) ANALYSIS
Case Study.
Sl No Top-up Amount No Of Affiliate Ads Payment Per Day By Affiliate Ad Total Affiliate Ad Income 1.5,000/- Daily 2 ad for 100 days 100/- Affiliate.
1 Managing Flow Variability: Safety Inventory The Newsvendor ProblemArdavan Asef-Vaziri, Oct 2011 The Magnitude of Shortages (Out of Stock)
Analysis grid superimposed 2D Street Grid Calculating Travel-Time …vector to raster conversion Note that a 100 row by 100 column analysis grid (10,000.
Your boss asks… How many of these things do we have to sell before we start making money? Use your arrow keys to navigate the slides.
Price Ceilings and Floors. How much rent do you pay per month during the academic year? (Enter DK if you dont know.)
Decision Analysis (Decision Trees) Y. İlker TOPCU, Ph.D twitter.com/yitopcu.
COST APPROACHES TO PRICING
Look at This PowerPoint for help on you times tables
To Accompany Krajewski & Ritzman Operations Management: Strategy and Analysis, Seventh Edition © 2004 Prentice Hall, Inc. All rights reserved. Process.
1 1 Slides by John Loucks St. Edwards University Modifications by A. Asef-Vaziri.
Inflation Unit Chapter 2 26
Matching and comparing coins and bills
$ TOTAL INCOME 100 Quick Start 4 Within 30 Days of Start Date.
Making Landmark or Friendly Numbers (Multiplication)
Shade the rectangles with correct answer with a colour pencil of your choice.
Least Common Multiples and Greatest Common Factors
Quantitative Methods Session 2 – Chapter 2 - PERCENTAGE Pranjoy Arup Das.
Example of a Decision Tree Problem: The Payoff Table
Elasticity and its Application
Slippery Slope
Counting on Addition = Example: 67.
Making Numbers Two-digit numbers Three-digit numbers Click on the HOME button to return to this page at any time.
MathOnMonday® Presents: Building Math Courage® A program designed for Adults or Kids who have struggled to learn their Math in the traditional classroom!
Roger died intestate survived by his wife, Ann, and by their one child, Mark. The value of the probate estate available for distribution is $240,000. How.
Look at these sequences. What is happening? 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 10, 20, 30, 40, 50, 60, 70, 80, 90, , 200, 300, 400, 500, 600, 700, 800,
Number bonds to 10,
Beat the Computer Drill Divide 10s Becky Afghani, LBUSD Math Curriculum Office, 2004 Vertical Format.
Fractions Simplify: 36/48 = 36/48 = ¾ 125/225 = 125/225 = 25/45 = 5/9
Fundamentals of Cost Analysis for Decision Making
Partial Products. Category 1 1 x 3-digit problems.
Carpentry & Joinery Phase 4 Module 2 Unit 4 Geometry Right Angle Triangle c a b 90° Sample Questions & Solutions.
1 PROBLEM 1 PROBLEM 3 PROBLEM 2 PROBLEM 4 PROBLEM 5 PROBLEM 8PROBLEM 7 PROBLEM 6 STANDARD 13 SUPPLEMENT AND COMPLEMENT: NUMERIC PROBLEM 10PROBLEM 9 PRESENTATION.
Multiplying By Multiples of 10 © 2012 Elizabeth Hill.
Control Structure There are two kind of control structure in GWBASIC one is iteration/loop or repetitive and second make decision/condition. Iteration/Loop.
Spearman’s Rank For relationship data. Non-parametric i.e. no assumptions are made about data fitting a normal distribution You must have more than 5.
Presentation transcript:

The second kind of control structure in GWBASIC is condition or decision making. In GWBASIC we use If.. Then.. Else statement. 2 ) If.. Then …Else The if keyword is used to execute a statement or block only if condition is true. If this condition is true, then statement is Execute otherwise ELSE statement will be execute. Syntax IF test THEN Statement 1 ELSE Statement 2 Example 30If a > 10 then ? “This No. is Greater then ten “ ELSE ? “this No. is Less then or equal 10 “ Note : ? Is Alternate of print statement. Sir Masood Design By : Sir Masood

Practical #16 Write a program to input your name, and basic salary from keyboard and Display pay slip. Pay slip consist of your name, basic salary, convince allowance, medical allowance, house rent, income tax, provident fund,gross pay and net salary. Formulas are Con = bsal * 10 /100 It = bsal * 5/100 med = bsal * 15/100 pf= bsal * 7/100 hr = bsal * 20 /100 gpay = bsal +con+med+hr netsal = gpay – it - pf Sir Masood Design By : Sir Masood

10 Key Off : CLS 20 INPUT “Enter Your Name “ ; N$ 35 INPUT “Entre Your Basic Salary “ ;BSAL 40 Let Con = BSAL * 10/ Let Med = BSAL * 15/ Let HR = BSAL * 20/ IF BSAL>5000 THEN Let IT = BSAL * 5/100 ELSE IT =0 80 Let PF = BSAL * 7/ Let GPAY = BSAL + Con +Med +HR 100 Let NetSAl = GPAY - IT – PF 110 PRINT “Name is “;N$ 120 PRINT “Basic Salary Is “;BSAL 130 PRINT “Convince Allow. Is “;Con 140 PRINT “Medical Allow. Is “;Med 150 PRINT “House Rent Is “;HR 160 PRINT “Income Tax Is “;IT 170 PRINT “Provident Fund Is “;PF 180 PRINT “Gross Pay. Is “;GPAY 190 PRINT “NET Salary is “;NetSal 200 END Sir Masood Design By : Sir Masood

Out Put 1 if salary < 5000 Enter Your Name ? Umer Khan Enter Your Basic Salary ? 1000 Name is : Umer Khan Basic Salary is : 1000 Convince Allow. Is : 100 Medical Allow. Is : 150 Hose Rent Allow. Is : 200 Income Tax is : 0 Provident Fund is : 70 Gross Pay is : 1450 NetSalary is : 1330 Out Put 2 if salary > 5000 Enter Your Name ? Umer Khan Enter Your Basic Salary ? 6000 Name is : Umer Khan Basic Salary is : 6000 Convince Allow. Is : 600 Medical Allow. Is : 900 Hose Rent Allow. Is : 1200 Income Tax is : 300 Provident Fund is : 420 Gross Pay is : 8700 NetSalary is : 7980 Sir Masood Design By : Sir Masood