Answered You can hire a professional tutor to get the answer.

QUESTION

ENSURE ALL WORK DONE IS ORIGINALLY AND IF NECESSARY PROPERLY CITED. No min/max length required. Windows Vista- the windows calculator will give the...

ENSURE ALL WORK DONE IS ORIGINALLY AND IF NECESSARY PROPERLY CITED. No min/max length required.Windows Vista- the windows calculator will give the answer of 15 when I take 150 X 10%. On the windows calculator when I take 100% it give 0.So what happens is that when we enter 100% we have not yet set the global operator. So when going into the calculation it takes the else case. Therefore 0 is returned which makes sense in the way it is coded. Now I guess if we want a 1 back well need to set the global operation to “ADD” if the global operation is “CLEAR”; before calling CalculateNewTotal.Thoughts???My percentage sub is:Private Sub BtnPercentage_Click(sender As System.Object, e As System.EventArgs) Handles BtnPercentage.ClickdblCurrentNumber = CDbl(Me.LblResult.Text)CalculateNewTotal()Me.LblResult.Text = Str(dblTotal / 100)dblTotal = 0strOperationGBL = "CLEAR"

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question