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 08:10
Ihave a music player on my phone. i can buy songs, add them to playlists and play them. obviously it would be redundant to store each song in each playlist; each playlist is just a list of pointers to the songs. for this lab you will simulate this behavior. your program will need to have options to: add songs to the system library (you will store the text of the first line of the song, rather than the audio) add playlists add songs to a playlist list playlists play a playlist list all of the songs in the library with a count of how many times each song has been played remove a song from a playlist remove a playlist remove a song from the library (and thus from all playlists that contain it) note that we will not be checking many error cases. in real programming this would be bad, you should usually try to recognize and respond to as many types of errors as you can. in the context of class we are trying to acquaint you with as many concepts as possible, so for the sake of educational efficiency we will not be checking most errors in this lab, you may assume that your user provides correct input. you may add all appropriate error testing if you wish, but we will not be testing for it.
Answers: 2
question
Computers and Technology, 22.06.2019 10:00
When is an original work considered public domain? a. when posted via social media b. when it is posted on the internet c. when a copyright symbol is not included with the piece of work d. when explicit permission is given by the author / owner
Answers: 1
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, 23.06.2019 01:20
Me with this program in c++ ! computers represent color by combining sub-colors red, green, and blue (rgb). each sub-color's value can range from 0 to 255. thus (255, 0, 0) is bright red. (130, 0, 130) is a medium purple. (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (in other word, equal amounts of red, green, blue yield gray).given values for red, green, and blue, remove the gray part. ex: if the input is 130 50 130, the output is: 80 0 80. thus, find the smallest value, and then subtract it from all three values, thus removing the gray.
Answers: 3
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
Mathematics, 21.11.2019 05:31
question
Spanish, 21.11.2019 05:31
Questions on the website: 13722367