WEBVTT 00:01.240 --> 00:07.700 So we have argued all that text variables named as either the school coffeecake the underscore ice cap 00:07.780 --> 00:13.730 we know he or underscore Boston cream so we have added all their text variables here. 00:13.840 --> 00:21.150 Now we will check the functionality of resect option rather it is performing or not we will change the 00:21.150 --> 00:23.130 option here. 00:24.240 --> 00:34.890 Let's say we have defined these values so and now we are going to click on the reset button and now 00:35.100 --> 00:40.900 are you able to see that all of Ellen's husband is set to their default values sort of an exit entry. 00:40.920 --> 00:49.190 These are functions of done now where we do the code for total as well as the other functions which 00:49.190 --> 00:55.040 we are going to use is now let's see. 00:55.480 --> 00:59.210 I want to do that order for the check buttons. 01:01.060 --> 01:04.050 I want to go to the court for the check buttons. 01:04.390 --> 01:08.020 Let's do this. 01:08.470 --> 01:18.280 I want to use the word for the check buttons checked by dozens. 01:18.770 --> 01:31.370 Let's say that their physical store check button and the underscore value. 01:31.480 --> 01:37.150 Let's define this function if one variable Vaun to door. 01:38.270 --> 01:45.150 Get adoption equals equals to one on 01:47.980 --> 01:49.320 text. 01:49.460 --> 01:58.990 The option dogone pre-code and the day will stall. 02:00.480 --> 02:04.840 Not the year long. 02:04.950 --> 02:14.210 I guess we can say that variable Bhandari Gackt option equals equals zero 02:17.060 --> 02:32.050 then but we can say is text lock the dog configure and we need to stay close to they say but we need 02:32.050 --> 02:39.440 to disable extend and we the year and that's good luck option. 02:39.980 --> 02:55.290 Doc say and I want to say they do zero Similarly we be do this course for all the values like we want 02:55.290 --> 03:07.880 to do is we have the state to we have added six variable dog gay equals equal zero. 03:07.880 --> 03:13.820 Now what we really do is we have at an earlier than expected. 03:13.940 --> 03:22.800 So it is expecting de trop but I think Asian so that Mike Ward will run properly. 03:23.100 --> 03:33.920 So we will check this out for people wearing dark gay will click kill whatever do this and we will check 03:33.920 --> 03:38.420 this see their dog muck has gone. 03:38.650 --> 03:47.040 So we do the court for all the variables like for ice carpeting on Black Forest we will write the similar 03:47.040 --> 03:48.650 code for all these. 03:48.880 --> 03:51.280 So this is a sample which I've shown you. 03:51.280 --> 03:55.340 Similarly I will change the code for all these. 03:55.510 --> 04:01.420 So we have like the code for all the variables which we have created for text. 04:01.420 --> 04:05.490 I'd like to add all the cake items as well. 04:06.420 --> 04:11.890 So we have completed the code there that way. 04:12.260 --> 04:23.810 Now what we want to do is I want to create another section for definition off cost off items. 04:23.950 --> 04:27.560 I want the definition of the cost of items for them. 04:28.000 --> 04:34.420 I will create a function for definition cost off items. 04:34.600 --> 04:38.520 I'm going to create a function for Quasthoff items. 04:38.650 --> 04:40.780 So let's do this. 04:40.840 --> 04:43.450 We will have item 1 here. 04:43.450 --> 04:51.640 Item 1 is equal to floor and I will have the underscore locked the option door. 04:52.510 --> 04:55.760 Get met Kurt inside this. 04:56.010 --> 04:58.930 We will do the Gek matter. 04:59.240 --> 05:10.300 All the item item to is equal to floor the underscore Octa we will have expressed will not get the option 05:11.180 --> 05:21.280 Wayville how item card and in the item toward Wayville how other items like. 05:21.660 --> 05:30.320 So similarly we've been do this for eyes like 10 dart to get the option. 05:30.340 --> 05:33.400 So similarly we will do the gold for the rest of the items. 05:33.400 --> 05:34.610 Let's do this. 05:34.720 --> 05:38.900 So we have done the code for all the items we will have 16 item. 05:39.070 --> 05:42.430 So we have done the code for all the 16 items. 05:42.430 --> 05:49.940 Now what we do is we really calculate the price of drinks let's calculate the price of drinks. 05:50.050 --> 06:05.060 Let's say I want to use the price of drinks at item 1 might like by one point two and we can say that 06:05.870 --> 06:12.560 plus I warned item to in two. 06:12.570 --> 06:23.280 Let's say we can use one point nine nine and so on we will use the code for item 3 4 5 6 7 8. 06:23.730 --> 06:25.910 Let's do the code for diked items. 06:25.980 --> 06:27.930 Let's do this step by step. 06:28.020 --> 06:35.740 So we have right here the price of drinks and we will have the price of cakes as well. 06:35.760 --> 06:40.130 Now what we do is we have price of drinks and price of cakes as well. 06:40.170 --> 06:45.360 We will create the new variable drinks price 06:48.290 --> 06:58.970 in these drinks price let's calculate the cost as drinks price and we are going to calculate gas. 06:59.240 --> 07:04.460 Let's use the symbol of dollar here and we can say I see. 07:05.000 --> 07:08.780 And I want to use all their drinks praiser us 07:11.850 --> 07:25.170 Bosson Desch 12 I want to four make the string call my boss Sundt I will have price off drinks here 07:28.760 --> 07:38.240 now I will use is I brings friends I will help. 07:38.250 --> 07:44.760 Price is equal to dollar hastier. 07:45.260 --> 07:57.530 We will have post-run Desh QF and similarly we will how Boston Dedge and the bit that was and did reveal 07:57.570 --> 08:06.110 how price Salt's cakes Winchell's Rice also cakes. 08:06.280 --> 08:08.450 We have to remove these braces from. 08:11.080 --> 08:13.760 We have PRI's all cakes. 08:14.140 --> 08:18.770 It is getting better on his autograph friends. 08:18.900 --> 08:27.570 We will have rice drinks as well as prizes also cakes so we are defining the function inside this function. 08:27.570 --> 08:29.490 We are having these kinds of options. 08:29.490 --> 08:35.180 Boston twelfths and Busseron price of grains as well as pretzels cakes. 08:35.280 --> 08:47.450 So we are having these two options so let's move farther and we will have cost of things. 08:47.450 --> 08:49.460 Not to say. 08:49.920 --> 08:55.790 And here we will pause the strings sprites. 08:56.080 --> 09:03.550 Similarly we will select Create here call Stahl's cakes Datsik option. 09:04.020 --> 09:11.310 And here we will use KC's price so we will do this particular options. 09:11.320 --> 09:21.870 We have assigned here so we have your school staff kickstarts say Azel cakes price so similarly we do 09:21.960 --> 09:23.580 solve this charge. 09:23.610 --> 09:34.160 We will use the dollars in malia family values Astier And inside this ice yard we will use Boston to 09:34.170 --> 09:37.290 f inside this parceling 12th. 09:37.530 --> 09:48.060 What we do is we will use here present option and we will Pozzo value as one point 5:9 for solving stodge 09:48.060 --> 09:49.170 we have done. 09:49.530 --> 09:55.980 Now what we will do is we will do solve is charged our second option and here we will pause the A C 09:55.980 --> 09:59.040 option no service charge is done. 09:59.190 --> 10:10.090 Now what is this we want to have a subtotal for subtotal Let's say I want to have subtotal of items 10:10.240 --> 10:21.120 is equal stool we will use that dollar we will have SDR we will use force to well-fought for making 10:21.120 --> 10:21.800 Poppas. 10:21.900 --> 10:27.700 And what we do is we will have some symbol here. 10:27.840 --> 10:40.700 We will use price off drinks and similarly we will aggregate the price of geek's price of KC's Plus 10:41.030 --> 10:52.340 I would like to add one point 5:9 value here and we will use some total sum thoughtful dart sect option 10:52.880 --> 10:54.260 inside this option. 10:54.260 --> 11:06.530 We will how we will pause here subtotal off items we will calculate the tax also taxes it will stall 11:07.460 --> 11:13.440 we will use their dollar symbol on my SDR inside this SDR. 11:13.440 --> 11:26.030 We will use those for some 2x passing to f and we will use is we really will pause and symbol Wayville 11:26.040 --> 11:38.320 house price of drinks blah's we will have drives off Hick's and what we will use is we will operate 11:38.390 --> 11:46.550 here 1 1 5 9 and do self-discharge we can say is that Texas gained 1 5.