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, 21.06.2019 22:00
Problems: 1. using textbooks, reference books, and internet as your source of research, draw the following microprocessor microarchitectures i. intel 8086 ii. motorola 68000 i atmel atmega32 iv. mips single cycle v. arm cortex-m3 write an hdl module for a hexadecimal seven-segment display decoder. the input is 4-bit binary representing a hex number (0-f), and the output is 8-bit seven segment display bits (a-h). thus, the decoder must handle the digits 10 - 15 to display a-f respectively, in addition to 0-9 numbers. 2. design a 4-bit left and right rotator (both outputs). first sketch schematic diagrams of your design. then implement your design using hdl coding. 3. 4. design a modified priority encoder that receives an 8-bit input, a7: 0 and produces a 3-bit output, y2o. y indicates the most significant bit of the input that is true. y should be 0 if none of the inputs are true. give a simplified boolean equation, sketch a schematic, and write an hdl code. 5.write an 8: 1 multiplexer module called mux8 with selection inputs s, data input d, and data output y. data input (d) and data output (v) are 32-bit wide
Answers: 3
question
Computers and Technology, 23.06.2019 13:00
In excel - calculate the actual increase/decrease from first quarter to the second quarter then subtract subtract first quarter value from second quarter total then divide result by first quarter value
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Drag the tiles to the correct boxes to complete the pairs. match the errors with their definitions. #name #value #ref when a formula produces output that is too lengthy to fit in the spreadsheet cell arrowright when you enter an invalid cell reference in a formula arrowright when you type text in cells that accept numeric data arrowright when you type in a cell reference that doesn’t exist arrowright reset next
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
What is the total number of time zones that can be configured to show by default in a calendar in outlook 2016?
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
Mathematics, 18.09.2020 23:01
question
Mathematics, 18.09.2020 23:01
question
Mathematics, 18.09.2020 23:01
question
Mathematics, 18.09.2020 23:01
question
English, 18.09.2020 23:01
question
Mathematics, 18.09.2020 23:01
question
Social Studies, 18.09.2020 23:01
question
Mathematics, 18.09.2020 23:01
question
Mathematics, 18.09.2020 23:01
question
Mathematics, 18.09.2020 23:01
question
Social Studies, 19.09.2020 01:01