a patron needs an application to calculate the tip and final bill amount for a restaurant bill. accept the bill amount 129,50 and tip percentage 10%.
calculate the tip amount and final bill of the patron and then display it
Module Module1
Sub Main()
'get the bill amount
Console.Write("Enter the bill amount: ")
Dim billAmount As Double = Double.Parse(Console.ReadLine())
'Calculate the tip
Dim tip As Double = billAmount * 0.1
'Calculate the final bill
Dim finalBill As Double = billAmount + tip
'display the tip
Console.WriteLine("The tip(10%): {0} USD", tip)
'display the final bill
Console.WriteLine("The final bill: {0} USD", finalBill)
Console.ReadLine()
End Sub
End Module
Comments
Leave a comment