1
00:00:01,540 --> 00:00:09,130
OK, so now we are back to A.J. and our quote from the Variables Lecture, we have a list of data that

2
00:00:09,130 --> 00:00:12,070
we will use and create variables based on that.

3
00:00:12,700 --> 00:00:13,150
All right.

4
00:00:13,150 --> 00:00:14,410
Let's jump right into that.

5
00:00:15,040 --> 00:00:16,870
So let's start with bitts.

6
00:00:17,500 --> 00:00:22,700
Before that, the laid line we created in the last lecture, this one.

7
00:00:23,440 --> 00:00:27,380
So the first one was the number of seats, which was five, I guess.

8
00:00:27,820 --> 00:00:37,210
So as I showed you in the variables lesson data type, variable name equals value and a semicolon at

9
00:00:37,210 --> 00:00:38,020
the end of the line.

10
00:00:38,710 --> 00:00:40,210
So Boyte.

11
00:00:42,210 --> 00:00:55,210
Number of seats and as you can see, I'm using Camil case here equals five and a semicolon.

12
00:00:55,770 --> 00:00:56,680
So that's it.

13
00:00:56,920 --> 00:00:57,730
It is easy.

14
00:00:57,870 --> 00:01:01,070
Let's define other variables to a tip.

15
00:01:01,320 --> 00:01:09,300
It is really easy to duplicate lines with Control Plasty or Almac Command plus DB, but you can use

16
00:01:09,300 --> 00:01:10,740
copy paste here to.

17
00:01:11,950 --> 00:01:23,080
OK, three bite type attributes were on the side, so control plasty and hand number of those.

18
00:01:25,600 --> 00:01:27,340
It was three.

19
00:01:29,910 --> 00:01:33,210
And number of vehicle owners.

20
00:01:38,510 --> 00:01:39,350
Which was one.

21
00:01:41,370 --> 00:01:43,080
And emmissions taka.

22
00:01:45,430 --> 00:01:49,370
Changing the name mission sticker.

23
00:01:50,470 --> 00:01:58,470
It was for now, let's move on to shorts, only thing is changing here is the day to type.

24
00:01:58,480 --> 00:02:03,760
So first, short power.

25
00:02:05,660 --> 00:02:16,400
Equals three hundred and sixty two and a semicolon, you can use power or power in kilowatts as variable

26
00:02:16,400 --> 00:02:18,900
name, it is really up to you.

27
00:02:19,760 --> 00:02:21,910
The next one is horsepower.

28
00:02:21,920 --> 00:02:28,240
So doubling this line, horse power with uppercase.

29
00:02:28,250 --> 00:02:35,690
And it was four hundred and ninety two then CO2 emission.

30
00:02:35,870 --> 00:02:43,970
In case of CO2, we can use numbers in the variable name, but you can also use letters so you can type

31
00:02:43,970 --> 00:02:44,750
in two.

32
00:02:45,410 --> 00:02:46,910
It's really up to you again.

33
00:02:47,240 --> 00:02:48,290
Both correct.

34
00:02:48,500 --> 00:02:51,050
So doubling this line and here.

35
00:02:52,680 --> 00:03:07,740
CO2 emission equals and it was 333 and last shorthair cubic capacity, so doubling this line again,

36
00:03:08,550 --> 00:03:11,310
deleting this part.

37
00:03:15,760 --> 00:03:27,910
And it was six thousand four hundred seventeen, OK, in the end, we had price and mileage, so here

38
00:03:28,420 --> 00:03:38,440
and price equals twenty nine thousand nine hundred and ninety nine and a semicolon and doubling the

39
00:03:38,450 --> 00:03:41,980
Seline mileage.

40
00:03:42,590 --> 00:03:50,470
And it was for thirteen thousand nine hundred and ninety nine.

41
00:03:51,690 --> 00:03:58,080
That's it here, we're going to add an extra thing, we are going to create a long for registration

42
00:03:58,080 --> 00:04:07,770
number when you start creating long and the beginning is the same, so long registration

43
00:04:09,510 --> 00:04:17,320
number equals a lot of numbers and a semicolon.

44
00:04:17,700 --> 00:04:22,350
So when you're finished with adding some extra numbers and a semicolon, you realize that something

45
00:04:22,350 --> 00:04:22,980
is not OK.

46
00:04:23,430 --> 00:04:31,440
The problem here is that when you create a long you have to add an hour to the end, uppercase or lowercase,

47
00:04:31,440 --> 00:04:32,580
you can use both.

48
00:04:32,700 --> 00:04:39,020
But I recommend you to use uppercase because lowercase l looks very similar to one.

49
00:04:39,600 --> 00:04:43,980
So adding an hour here will remove this threat underline.

50
00:04:44,910 --> 00:04:45,550
That's it.

51
00:04:45,810 --> 00:04:51,600
So the reason why we have to add Al, to the long numbers will be explained later.

52
00:04:51,750 --> 00:04:59,070
For now, I can say that the full data type for whole numbers as end and for floating point numbers

53
00:04:59,070 --> 00:05:02,110
is double in case of long and float.

54
00:05:02,490 --> 00:05:06,250
We have to tell Jova the exact data type of the number.

55
00:05:06,570 --> 00:05:12,210
It's a bit simplified, but don't worry, I will make it all clear so we are almost done.

56
00:05:12,480 --> 00:05:19,650
Let's define floating point numbers so we have three float values combined, urban and exurban fuel

57
00:05:19,650 --> 00:05:20,390
consumption.

58
00:05:20,730 --> 00:05:35,340
So here float fuel consumption combined equals and it was fifteen point five.

59
00:05:35,730 --> 00:05:42,820
And we have to add an F here and a Samwick on the next one as urban.

60
00:05:43,500 --> 00:05:56,630
So removing this combined and replacing with urban and changing the number to twenty one point four

61
00:05:57,210 --> 00:06:00,340
and one more the extra urban.

62
00:06:00,480 --> 00:06:09,720
So adding extra hair and changing this wire to thirteen point six.

63
00:06:10,840 --> 00:06:16,570
So as you can see, I changed the order of the words, the reason is that this way it is easier to read

64
00:06:16,570 --> 00:06:20,160
and see that the variables are connected to each other.

65
00:06:21,170 --> 00:06:28,970
OK, I know we didn't have double on the website, but let's define one, we are still the precise average

66
00:06:28,970 --> 00:06:30,010
fuel consumption.

67
00:06:30,290 --> 00:06:41,300
So here double fuel consumption, size average.

68
00:06:43,030 --> 00:06:48,970
Equals and 15 points and a lot of random numbers.

69
00:06:50,940 --> 00:06:58,590
And a semicolon, we can manipulate the number and define how many times we would like to multiply or

70
00:06:58,590 --> 00:07:06,070
divide it with ten to do that, let's put an E and a number to the end of the number.

71
00:07:06,480 --> 00:07:13,300
So adding E one and dividing the number with ten.

72
00:07:14,220 --> 00:07:21,960
So this way, one point five will give us the same number and doing it the opposite way.

73
00:07:22,470 --> 00:07:25,410
Just adding a negative here.

74
00:07:27,070 --> 00:07:29,080
We still have the same number.

75
00:07:29,500 --> 00:07:33,640
OK, now leave it as it is just to prove that this works properly.

76
00:07:34,180 --> 00:07:35,260
OK, just a side note.

77
00:07:35,410 --> 00:07:38,290
It works only with double and float.

78
00:07:38,710 --> 00:07:41,910
Now, let's move on to more variables left.

79
00:07:41,920 --> 00:07:44,070
One is Boolean is damaged.

80
00:07:44,620 --> 00:07:45,790
So here.

81
00:07:47,610 --> 00:08:02,280
Bullion is damaged, equals two and a CHA for energy efficiency.

82
00:08:04,660 --> 00:08:05,410
Category.

83
00:08:08,230 --> 00:08:10,510
Equals simple court.

84
00:08:11,390 --> 00:08:18,230
And in a simple code, while Dodge Challenger is not the best in saving the environment and I think

85
00:08:18,230 --> 00:08:24,560
the worst level is, gee, so I will give it a G here and a semicolon.

86
00:08:24,830 --> 00:08:31,430
OK, so finally we defined all our variables and as you can see, all of them are gray because they

87
00:08:31,430 --> 00:08:35,020
are not used anywhere, but it will change very soon.

88
00:08:35,330 --> 00:08:37,760
So in a new line here.

89
00:08:39,600 --> 00:08:47,280
Start typing in system that Baudot Branton or use as or your team and hit enter, I'm going to go that

90
00:08:47,280 --> 00:08:47,520
way.

91
00:08:47,520 --> 00:08:55,940
So s o u t and one prints a string to system that out appears and it is selected, hit, enter.

92
00:08:56,250 --> 00:08:59,940
And now as you can see, it is replaced with system that Outbrain time.

93
00:09:00,690 --> 00:09:05,040
So double codes here 2000 18.

94
00:09:06,320 --> 00:09:06,920
Dorje.

95
00:09:08,350 --> 00:09:19,120
Challenger, SRT, three hundred and ninety two, so doubling this line.

96
00:09:20,340 --> 00:09:25,710
And instead of this text, let's replace it with price.

97
00:09:27,150 --> 00:09:35,610
Colin Espace and Euro Mark, you can also add it to the end of the text, I will show you how and here

98
00:09:35,790 --> 00:09:45,030
after the double cotes plus and just stop and the variable name price and when it appears hit, enter.

99
00:09:45,720 --> 00:09:46,780
OK, that's it.

100
00:09:47,190 --> 00:09:52,390
Now, as you can see, prices here and price here is not great anymore.

101
00:09:52,830 --> 00:10:01,170
You can also add another tax to the end of this by using plus again, double quotes and you can type

102
00:10:01,170 --> 00:10:05,580
in euro if you cannot find the euro key on your keyboard.

103
00:10:06,740 --> 00:10:09,290
OK, you know, I think this here.

104
00:10:10,220 --> 00:10:16,220
And now let's move on to the next one, which is mileage, so doubling this line again.

105
00:10:16,520 --> 00:10:22,650
And is the price going to have mileage and.

106
00:10:23,790 --> 00:10:32,190
Here, mileage plus double quotes and KM or Mars, it is really up to you.

107
00:10:32,820 --> 00:10:36,270
OK, now the next line is is damaged.

108
00:10:37,540 --> 00:10:46,600
So here they call is damaged, damaged

109
00:10:48,760 --> 00:10:58,210
corn, and here instead of milage and this text is damaged, registration number and cubic capacity

110
00:10:58,210 --> 00:10:59,690
will be the next.

111
00:10:59,710 --> 00:11:07,210
So here, registration, no registration number.

112
00:11:08,110 --> 00:11:13,300
And here, registration number is variable name.

113
00:11:13,930 --> 00:11:16,330
OK, now cubic capacity.

114
00:11:17,740 --> 00:11:24,930
So, yeah, cubic capacity here.

115
00:11:27,700 --> 00:11:33,610
Cubic capacity and plus double quotes and cesium.

116
00:11:34,510 --> 00:11:39,600
Now let's bring out power and horsepower in the same line.

117
00:11:39,850 --> 00:11:43,270
So here power.

118
00:11:48,170 --> 00:11:53,330
Power plus kilowatt.

119
00:11:54,620 --> 00:12:00,890
And they left parentheses here, plus the horsepower.

120
00:12:02,210 --> 00:12:14,600
Plus, double quotes and HP and they write parentheses like CO2 emission is the next, so violating

121
00:12:14,600 --> 00:12:25,370
this part here CO2 emission and leaving this part of the code.

122
00:12:27,370 --> 00:12:44,460
IBM's CO2 emission plus an eye is mission missing from the air and space and gram per kilometer.

123
00:12:44,890 --> 00:12:49,750
Now the emissions sticker and the energy efficiency category.

124
00:12:50,170 --> 00:12:56,950
So doubling this line here again and here and mission.

125
00:13:00,870 --> 00:13:01,260
Take.

126
00:13:04,690 --> 00:13:15,460
Emissions sticker and hair left Prentice's energy efficiency

127
00:13:17,170 --> 00:13:18,070
category.

128
00:13:21,080 --> 00:13:22,310
Lower case.

129
00:13:23,350 --> 00:13:23,950
Colin.

130
00:13:25,670 --> 00:13:34,970
And plus, an energy efficiency category, close and double quotes and right parentheses also, let's

131
00:13:34,970 --> 00:13:38,090
add a space here, too, and that's it.

132
00:13:39,510 --> 00:13:42,760
OK, now let's move on to the next line here.

133
00:13:43,170 --> 00:13:50,910
So the fuel consumption, so doubling this line and here.

134
00:13:52,540 --> 00:13:59,500
Combined fuel consumption.

135
00:14:01,120 --> 00:14:03,100
Colin Plus.

136
00:14:04,260 --> 00:14:12,330
Here, fuel consumption combined and the leaf in this part of the code.

137
00:14:13,960 --> 00:14:21,610
And here later, per 100 kilometers, the next three is going to be easy.

138
00:14:21,640 --> 00:14:31,840
So just simply doubling this line and instead of combined, we're going to use urban world and changing

139
00:14:31,840 --> 00:14:35,140
the variable name here to urban.

140
00:14:36,280 --> 00:14:39,850
Doubling this line, yeah, extra urban.

141
00:14:41,770 --> 00:14:44,260
And the text as well.

142
00:14:45,390 --> 00:14:45,640
Here,

143
00:14:48,610 --> 00:14:49,570
one more left.

144
00:14:54,160 --> 00:14:55,180
Pressors.

145
00:14:57,730 --> 00:15:02,170
Average fuel consumption here changing this.

146
00:15:04,210 --> 00:15:11,710
Precise average, so three more variables left to go, number of previous owners, number of those and

147
00:15:11,710 --> 00:15:12,640
a number of seats.

148
00:15:13,270 --> 00:15:14,590
So here.

149
00:15:15,570 --> 00:15:17,580
Bubbling face again.

150
00:15:19,650 --> 00:15:21,180
Anything this.

151
00:15:22,560 --> 00:15:24,370
Number of.

152
00:15:25,780 --> 00:15:28,810
Previous oh, those.

153
00:15:29,950 --> 00:15:35,890
And here, number of vehicle owners.

154
00:15:37,970 --> 00:15:41,210
Doubling this line number of.

155
00:15:43,910 --> 00:15:44,630
Those.

156
00:15:50,940 --> 00:15:57,120
And finally, number of seats.

157
00:16:00,610 --> 00:16:02,560
OK, so now we're done.

158
00:16:02,920 --> 00:16:08,560
Let's go to the Green Arrow up here and select Ron.

159
00:16:10,400 --> 00:16:16,430
So now you can see all the variables and the text we just tied in as an output here.

160
00:16:18,010 --> 00:16:19,460
I know it was a bit long.

161
00:16:19,810 --> 00:16:22,600
Feel free to pause the video and take a break.

162
00:16:22,600 --> 00:16:27,090
In the next lecture, I will show you how to convert a death type into another one.

163
00:16:27,840 --> 00:16:28,690
Save the.
