Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual...
Transcript of Lab Practical Works for Lesson 02 - sabraz · Lab Practical Works for Lesson 02 MIT 31043: Visual...
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
Lesson 02Working with Data
TypesMIT 31043, Visual Programming
By: S. Sabraz NawazSenior Lecturer in MIT
Practice 01Interface with Properties
Practice 02: By. SaNa 3
Code
Practice 02: By. SaNa 4
Practice 02
Practice 02: By. SaNa 5
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
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
Coding
Practice 02: By. SaNa 8
Coding
Practice 02: By. SaNa 9
Practice 03
Practice 02: By. SaNa 10
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
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
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
Coding
Practice 02: By. SaNa 14
Coding
Practice 02: By. SaNa 15
Coding
Practice 02: By. SaNa 16
Practice 04
Practice 02: By. SaNa 17
bonusTextbox allowanceTextbox netSalaryTextbox
basicSalaryTextbox
otRateTextbox
otHoursTextbox
loanTextbox
Interface Design
Practice 02: By. SaNa 18
Practice 02: By. SaNa 19
Codes
Codes (casting)
Practice 02: By. SaNa 20
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
Interface Design
Practice 02: By. SaNa 22
Codes 1 of 3
Practice 02: By. SaNa 23
Codes 2 of 3
Practice 02: By. SaNa 24
Codes 3 of 3
Practice 02: By. SaNa 25