1
00:00:00,690 --> 00:00:09,260
Hello and welcome to this lecture in this lecture we are going to be looking at some basic arithmetic.

2
00:00:09,360 --> 00:00:14,250
Operators commonly used in business applications

3
00:00:16,680 --> 00:00:19,990
so these are the basic operators.

4
00:00:20,070 --> 00:00:24,480
So we've got the addition with the symbol of the plus sign.

5
00:00:24,480 --> 00:00:33,050
I'm sure we are all familiar with these operators subtraction multiplication and division.

6
00:00:33,090 --> 00:00:39,180
Notice that for the multiplication in parentheses I've called it asterisks.

7
00:00:39,240 --> 00:00:46,650
This is because in C sharp the asterisks is what is used to implement multiplication.

8
00:00:46,650 --> 00:00:57,450
If you are trying to program or code an arithmetic function for multiplication if you're trying to code

9
00:00:57,450 --> 00:01:09,080
for a division you'll be using this slash symbol to represent division let's create a project that we

10
00:01:09,080 --> 00:01:13,040
can use to implement these arithmetic operators.

11
00:01:13,040 --> 00:01:14,630
So I've got my vision study here.

12
00:01:14,630 --> 00:01:19,000
I'm going to right click and go run as administrator and then click.

13
00:01:19,010 --> 00:01:21,340
Yes.

14
00:01:22,100 --> 00:01:29,190
So Visual Studio as launched I'm going to click new project.

15
00:01:29,330 --> 00:01:31,580
Give it time to load

16
00:01:35,030 --> 00:01:38,490
trying to initialize the templates.

17
00:01:38,610 --> 00:01:40,510
All right so call it templates up.

18
00:01:40,650 --> 00:01:44,170
So I'm going to use web was called templates.

19
00:01:44,200 --> 00:01:45,680
Got web selected.

20
00:01:45,810 --> 00:01:53,520
I'm going to go for airspeed on net application and this is where I give the application a name when

21
00:01:53,520 --> 00:01:55,200
they mean your application.

22
00:01:55,200 --> 00:02:00,710
If you're using more than one word try not to create spaces between them.

23
00:02:00,950 --> 00:02:05,520
So I'm going to call mine same basic

24
00:02:09,560 --> 00:02:10,470
operators.

25
00:02:10,470 --> 00:02:19,840
Notice the couples tell ization of the second word and I click OK.

26
00:02:24,110 --> 00:02:30,700
OK so next in our selected empty template on the ad folders and core references make sure you go to

27
00:02:30,710 --> 00:02:32,450
web form selected.

28
00:02:32,450 --> 00:02:34,670
This will enable us to add.

29
00:02:34,760 --> 00:02:36,800
Let her on and click.

30
00:02:36,890 --> 00:02:39,250
OK.

31
00:02:40,010 --> 00:02:41,830
Let's add our form.

32
00:02:41,930 --> 00:02:44,880
So where's got the name of your.

33
00:02:44,960 --> 00:02:45,610
Here we go.

34
00:02:45,610 --> 00:02:54,770
Basic operators right click and click on the ship should be an option to add and click on a web form

35
00:02:55,700 --> 00:02:58,880
then give you a web form a name.

36
00:02:58,880 --> 00:03:01,460
I'm going to call my default and click OK

37
00:03:06,440 --> 00:03:09,070
so it opens up in this view.

38
00:03:09,140 --> 00:03:15,890
I'm going to switch to design which is this tab here and I'm going to add some controls.

39
00:03:16,040 --> 00:03:26,240
I'm going to add a text box a button and a label so I click on it to click on that and text box can

40
00:03:26,240 --> 00:03:35,300
scroll down where the textbook says make sure I put my mouse where I want to put a text box and go back

41
00:03:35,300 --> 00:03:37,830
to my control double click.

42
00:03:38,420 --> 00:03:46,850
And a tool inserted where I have placed the mouse so I just drag it along a little bit and just tab

43
00:03:46,850 --> 00:03:47,720
down.

44
00:03:48,020 --> 00:03:49,950
Next thing I want to do is add a button.

45
00:03:49,970 --> 00:03:58,080
So where I've got the mouse cursor flashing there I just go back to my control look for the button.

46
00:03:58,580 --> 00:04:01,110
This should be one full button.

47
00:04:01,460 --> 00:04:02,110
Larry go.

48
00:04:02,120 --> 00:04:05,390
Just double click and it will insert the button there.

49
00:04:05,390 --> 00:04:09,840
Finally I want a label so where the mouse is flashing.

50
00:04:09,890 --> 00:04:15,370
I go back to Tool Box go down double click on label.

51
00:04:15,700 --> 00:04:17,150
So I've got all my controls.

52
00:04:17,150 --> 00:04:25,020
I just need to change the I.D. on the labels or click on the first one which is it tells you that's

53
00:04:25,020 --> 00:04:28,650
a text box one I need to change that name.

54
00:04:28,880 --> 00:04:32,560
Scroll down to the I.D. part of it.

55
00:04:32,620 --> 00:04:36,820
No words got the I.D. I'll just change that to input text box

56
00:04:46,650 --> 00:04:47,010
gain.

57
00:04:47,020 --> 00:04:53,720
Notice a capitalization of the first letter of each word.

58
00:04:53,730 --> 00:04:56,860
I come here to the bottom.

59
00:04:56,860 --> 00:05:00,500
I'm going to change that too.

60
00:05:03,120 --> 00:05:04,130
Okay.

61
00:05:04,130 --> 00:05:09,700
Button will also change the text on the button.

62
00:05:09,760 --> 00:05:11,040
There should be a text.

63
00:05:11,230 --> 00:05:15,490
So rather than it's a button I'm gonna say something else.

64
00:05:15,490 --> 00:05:16,480
Going to click that

65
00:05:19,890 --> 00:05:20,850
and typing okay.

66
00:05:20,860 --> 00:05:23,680
And that you change from button to OK.

67
00:05:23,680 --> 00:05:29,260
Finally the label came to label here I'm going to make the text blank.

68
00:05:29,260 --> 00:05:30,840
I don't want any text there.

69
00:05:31,060 --> 00:05:33,130
So the text should disappear.

70
00:05:33,430 --> 00:05:45,260
I just need to change the I.D. on that label and if click on it so I can see it.

71
00:05:46,120 --> 00:05:46,570
All right.

72
00:05:46,570 --> 00:05:48,580
Found the label.

73
00:05:48,580 --> 00:05:52,930
Just need to rename that to result

74
00:05:56,410 --> 00:05:59,620
label again.

75
00:05:59,620 --> 00:06:06,280
Notice a capitalization on the first letter of the second word.

76
00:06:06,280 --> 00:06:12,100
So we've created the basic form for our application.

77
00:06:12,100 --> 00:06:16,470
We'll use this to test out the basic operators.

78
00:06:16,510 --> 00:06:23,560
So I'm gonna stop this lecture here and in the subsequent lectures that follows I will be testing out

79
00:06:23,680 --> 00:06:28,960
each of these operators using this application interface.

80
00:06:28,960 --> 00:06:30,340
We have built.

81
00:06:30,340 --> 00:06:32,170
So that's it for this lecture.

82
00:06:32,170 --> 00:06:33,610
Thanks for watching.

83
00:06:33,790 --> 00:06:34,720
Bye for now.
