// this class calculates a waitperson's tip as 15% of the bill public class debugthree1 { public static void main(string args[]) { double mycheck = 50.00; double yourcheck = 19.95; system. out. println("tips are"); calctip(mycheck); calctip(yourcheck); } public static int calctip(int bill) { final double rate = 0.15; tip = bill + rate; system. out. println("the tip should be at least " + tip); } }
Get the answer
Category: business |
Author: Valko Tomer
Related Questions
// this program accepts a user's monthly pay // and rent, utilities,

// this program assigns values to two variables // and performs mathem

Category
science
// this program creates a screen with two textboxes and a button. // when the user clicks the button, a label displays the result // which is the sum
art
// isordered // // return true if the queue contents are in increasing order (back to front) // queue may be empty ; in which case the function shoul
biomedicalengineering
// this season, the probability that the yankees will win a game is 0.54 and the probability that the yankees will score 5 or more runs in a game is