Friday
April 18, 2014

Homework Help: programming

Posted by Stacy on Friday, October 22, 2010 at 8:41am.

write a program to calculate the amount of a server's tip given the amount of the bill and the percentage tip ovtained via input dialog boxes. The output should be a complete sentence that reiterates the inputs and gives the resulting tip.

here is my attempt:

Public Class frmTip

Private Sub btnEnter_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEnter.Click
Dim billAmount As Double
Dim percent, tip As Double
billAmount = CDbl(InputBox("Amount of Bill"))
percent = CDbl(InputBox("Amount of Tip"))
tip = billAmount * percent / 100
txtOutput.Text = CDbl(Math.Round(tip, 2))
txtOutput.Text = "A percent tip on bill is tip"
End Sub
End Class

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

Visual Basics 2008 - This is a from chapter 3 #82. the problem is: Write a ...
Computer Visual Basics 2008 - This questions is from Chapter 5, #54) Write a ...
Intro to programming - Tip, Tax and Total question? Design a program that ...
Programming - Design a program that calculates the total amount of a meal ...
Programming - Language - PYTHON Design a program that calculates the total ...
CIS Design and Programming - Design a program that calculates the total amount ...
Computer Programming Design - I really need someone to help me with this.I post ...
computer science - write a program that calculates a customer's monthly bill. it...
math - 12.(4pts) Solve the problem. Round your answer to the nearest tenth of a ...
math - A standard tip for a waiter or waitress is between 15% and 20% of the ...

Search
Members