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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
Awell-diversified portfolio needs about 20-25 stocks from different categories is this true or false?
Answers: 2
question
Computers and Technology, 22.06.2019 12:20
Usually, when we sniff packets, we are only interested certain types of packets. we can do that by setting filters in sniffing. scapy’s filter use the bpf (berkeley packet filter) syntax; you can find the bpf manual from the internet. set the following filters and demonstrate your sniffer program again (each filter should be set separately): (a) capture only the icmp packet. (b) capture any tcp packet that comes from a particular ip and with a destination port number 23. (c) capture packets comes from or to go to a particular subnet. you can pick any subnet, such as 128.230.0.0/16; you should not pick the subnet that your vm is attached to.
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
Type the correct answer in the box. spell all words correctly. the managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
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
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
question
Advanced Placement (AP), 18.12.2020 02:20
question
Mathematics, 18.12.2020 02:20
question
History, 18.12.2020 02:20
question
Biology, 18.12.2020 02:20
Questions on the website: 13722367