subject

You are a developer asked to build a small application to split a bill and calculate tips. this application takes 2 inputs from the user for the billamount and nosofdiners based on these values it calculates the tip for values for 15%, 18% and 20% tip and then generates the totalbillamount for each of those tip percentages. subsequently the application presents the amount owed by each of the diners based on the totalbillamount and nosofdiners. create a new java class billcalcwork within the main method of this class and accomplish the following: a. declare 2 variables to take inputs from the user. these variables should be named a. billamount b. nosofdinersb. take the 2 inputs from the user and store them in the above variablesc. present the user with a calculation of 15%, 18% and 20% tip based on the billamount. also present them with totalbillamount based on those percentages (i. e. add the tip to the billamount)d. present the amount owed by each diner for each of the totalbillamounts. present this information in a meaningful way based on the results from zybooks tester. remember not to hardcode the values for tips and bill but rather calculate them. once you are done coding in eclipse, copy and paste the code in the zybooks zylabs environment to see if the code provides the right output. sample output (values may vary based on inputs)enter bill amount : 90enter number of diners : consider the following tips: 15 % : 13.5 | total bill: 103.518 % : 16.2 | total bill: 106.220 % : 18.0 | total bill: 108.0amount due from each diner based on tip percentage: tip amount 15% : 11.5 duetip amount 18% : 11.8 duetip amount 20% : 12.0 due

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 17:00, evanwall91
What does the faves button do? a. users mark a web page as a favorite b. leads other readers to favor a specific page c. readers sort and align their favicons, or favorite icons d. leads users to a message board where they can post questions
Answers: 1
image
Computers and Technology, 24.06.2019 02:50, rurbanok12
Be sure to answer all parts. synthesize the following compound from benzene. a. b. c. d. e. f. reaction [1] conditions: a b c d e f reaction [1] product: draw structure reaction [2] conditions: a b c d e f reaction [2] product: draw structure reaction [3] conditions: a b c d e f reaction [3] product:
Answers: 3
image
Computers and Technology, 24.06.2019 12:30, coursonianp8izbc
Do you think media is stereotype ? and why?
Answers: 1
image
Computers and Technology, 25.06.2019 04:30, Teedollasign
Which relativos possible when two tables share the same primary key? a.) one-to-one b.) one-to-many c.) many-to-one d.) many-to-many
Answers: 2
You know the right answer?
You are a developer asked to build a small application to split a bill and calculate tips. this appl...

Questions in other subjects:

Konu
Advanced Placement (AP), 03.07.2019 20:00