1 / 5

More Mathematical Operators Bake Sale Program

More Mathematical Operators Bake Sale Program. October 8, 2009. Open VB. Create the following form:. Double click the Calculate button and enter the following code: 'Calculate Total Sales lblTotalSales.Caption = Val(txtCookies.Text) _

lieu
Download Presentation

More Mathematical Operators Bake Sale Program

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. More Mathematical OperatorsBake Sale Program October 8, 2009

  2. Open VB. Create the following form:

  3. 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)

  4. '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)

  5. 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.........

More Related