subject

Jason wants to build a very simple tip calculator for whenever he goes eating in a restaurant. In his country, it's usual to tip 15% if the bill value is between 30 and 300. If the value is different, the tip is 20%. 1. Your task is to calculate the tip, depending on the bill value. Create a variable called 'tip' for this. Try not to use an if/else statement. 2. Print a string to the console containing the bill value, the tip, and the final value (bill tip). Example: 'The bill was 275, the tip was 41.25, and the total value 316.25' * TEST DATA: Test for bill values 275, 28 and 430

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 05:00
Acompany is inviting design for its new corporate logo from its users. this is an example of ? a. crowdfunding b. crowdvoting c. crowdsourced design d. crowdtracking
Answers: 3
question
Computers and Technology, 24.06.2019 10:00
Each time you save a document, you will need to type in the file type in which it should be saved you can select the save button to save it with the same file name if it has been previously saved you will need to select the location to save the file you will need to use the save as dialog box
Answers: 1
question
Computers and Technology, 24.06.2019 18:20
Acommon algorithm for converting a decimal number to binary is to repeatedly divide the decimal number by 2 and save the remainder. this division is continued until the result is zero. then, each of the remainders that have been saved are used to construct the binary number.write a recursive java method that implements this algorithm.it will accept a value of int and return a string with the appropriate binary character representation of the decimal number.my code: public class lab16{public string converttobinary(int input){int a; if(input > 0){a = input % 2; return (converttobinary(input / 2) + "" +a); } return ""; } }
Answers: 1
question
Computers and Technology, 24.06.2019 19:50
How to unblock on chrome book? ?
Answers: 1
You know the right answer?
Jason wants to build a very simple tip calculator for whenever he goes eating in a restaurant. In hi...
Questions
question
Biology, 10.07.2019 21:20
Questions on the website: 13722361