Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual...

25
Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty of Management and Commerce South Eastern University of Sri Lanka

Transcript of Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual...

Page 1: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Lab Practical Works for Lesson 02

MIT 31043: Visual Programming

By: S. Sabraz NawazSenior Lecturer in MIT

Department of MITFaculty of Management and Commerce

South Eastern University of Sri Lanka

Page 2: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Lesson 02Working with Data

TypesMIT 31043, Visual Programming

By: S. Sabraz NawazSenior Lecturer in MIT

Page 3: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Practice 01Interface with Properties

Practice 02: By. SaNa 3

Page 4: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Code

Practice 02: By. SaNa 4

Page 5: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Practice 02

Practice 02: By. SaNa 5

Page 6: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Properties Setting

Control Property Value

Form MaximizeBoxMinimizeBoxSizeText

FalseFalse265, 362Sales

Groupbox1

Groupbox2

BackColorTextBackColorText

ControlLight[empty]ControlLight[empty]

Label1

Label2Label3Label4Label5Label6

AutosizeBackColorFontColorFontSizeTextTextTextTextTextText

FalseBlackYellowCandra, 18pt, Bold232, 40Clothing SalesNumber of Items:Price:Extended Price:Discount (30%):Amount Due:

Practice 02: By. SaNa 6

Page 7: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Properties Setting

Control Property Value

Textbox1Textbox2Textbox3Textbox4Textbox5

NameNameNameNameName

quantityTextboxpriceTextboxextendedPriceTextboxdiscountTextboxamountDueTextbox

Button1

Button2

Button3

NameText

NameText

NameText

calculateButton&Calculate

clearButtonC&lear

exitButtonE&xit

Practice 02: By. SaNa 7

Page 8: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Coding

Practice 02: By. SaNa 8

Page 9: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Coding

Practice 02: By. SaNa 9

Page 10: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Practice 03

Practice 02: By. SaNa 10

Page 11: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Properties SettingControl Property Value

Form MaximizeBoxMinimizeBoxSizeText

FalseFalse387, 434Sales

Groupbox1

Groupbox2

Groupbox3

TextSize

TextSize

TextSize

[empty]269, 100

[empty]269, 112

Summary269, 100

Label1 AutosizeBackColorFontColorFontSizeText

FalseBlackYellowCandra, 18pt, Bold350, 40Clothing Sales

Practice 02: By. SaNa 11

Page 12: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Properties Setting

Control Property Value

Label1

Label2Label3Label4Label5Label6Label7Label8

AutosizeBackColorFontColorFontSizeText

TextTextTextTextTextTextText

FalseBlackYellowGeorgia, 18pt, Bold350, 40Clothing Sales

Number of Items:Price:Extended Price:Discount (30%):Amount Due:Total Amount:No. Of. Transactions:

Practice 02: By. SaNa 12

Page 13: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Properties Setting

Control Property Value

Textbox1Textbox2Textbox3Textbox4Textbox5Textbox6Textbox7

NameNameNameNameNameNameName

quantityTextboxpriceTextboxextendedPriceTextboxdiscountTextboxamountDueTextboxtotalAmountTextboxnumberOfTransactionsTextbox

Button1

Button2

Button3

NameText

NameText

NameText

calculateButton&Calculate

clearAllButtonC&lear All

exitButtonE&xit

Practice 02: By. SaNa 13

Page 14: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Coding

Practice 02: By. SaNa 14

Page 15: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Coding

Practice 02: By. SaNa 15

Page 16: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Coding

Practice 02: By. SaNa 16

Page 17: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Practice 04

Practice 02: By. SaNa 17

Page 18: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

bonusTextbox allowanceTextbox netSalaryTextbox

basicSalaryTextbox

otRateTextbox

otHoursTextbox

loanTextbox

Interface Design

Practice 02: By. SaNa 18

Page 19: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Practice 02: By. SaNa 19

Codes

Page 20: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Codes (casting)

Practice 02: By. SaNa 20

Page 21: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Practical 05• Write a Visual C# program that takes Amount as

input and displays the possible currency

denominations as output. Currency denominations

are 5000/=, 2000/=, 1000/=, 500/=, 100/=, 50/=, 20/=,

10/= and Coins.

Practice 02: By. SaNa 21

Page 22: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Interface Design

Practice 02: By. SaNa 22

Page 23: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Codes 1 of 3

Practice 02: By. SaNa 23

Page 24: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Codes 2 of 3

Practice 02: By. SaNa 24

Page 25: Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty

Codes 3 of 3

Practice 02: By. SaNa 25