October 8, 2009. 1.Open VB. 2.Create the following form:
-
Upload
ashlyn-perkins -
Category
Documents
-
view
215 -
download
1
Transcript of October 8, 2009. 1.Open VB. 2.Create the following form:
![Page 1: October 8, 2009. 1.Open VB. 2.Create the following form:](https://reader036.fdocuments.in/reader036/viewer/2022082816/56649cf75503460f949c71f6/html5/thumbnails/1.jpg)
More Mathematical OperatorsBake Sale Program
October 8, 2009
![Page 2: October 8, 2009. 1.Open VB. 2.Create the following form:](https://reader036.fdocuments.in/reader036/viewer/2022082816/56649cf75503460f949c71f6/html5/thumbnails/2.jpg)
1. Open VB.2. Create the
following form:
![Page 3: October 8, 2009. 1.Open VB. 2.Create the following form:](https://reader036.fdocuments.in/reader036/viewer/2022082816/56649cf75503460f949c71f6/html5/thumbnails/3.jpg)
Double click the Calculate button and enter the following code:
'Calculate Total Sales lblTotalSales.Caption =
Val(txtCookies.Text) _ + Val(txtCakes.Text) + Val(txtPies.Text)
+ _ Val(txtMuffins.Text)
![Page 4: October 8, 2009. 1.Open VB. 2.Create the following form:](https://reader036.fdocuments.in/reader036/viewer/2022082816/56649cf75503460f949c71f6/html5/thumbnails/4.jpg)
'Calculate Sales Percentages lblCookiesPerc.Caption =
Fix(Val(txtCookies.Text) / _ Val(lblTotalSales.Caption) * 100) lblCakesPerc.Caption =
Fix(Val(txtCakes.Text) / _ Val(lblTotalSales.Caption) * 100) lblPiesPerc.Caption = Fix(Val(txtPies.Text) /
_ Val(lblTotalSales.Caption) * 100) lblMuffinsPerc.Caption =
Fix(Val(txtMuffins.Text) / _ Val(lblTotalSales.Caption) * 100)
![Page 5: October 8, 2009. 1.Open VB. 2.Create the following form:](https://reader036.fdocuments.in/reader036/viewer/2022082816/56649cf75503460f949c71f6/html5/thumbnails/5.jpg)
Save your work!Run your program.....does it work?I’ll walk around to check and give you credit.
Have a great weekend! 3 day weekend.........