subject
Computers and Technology, 06.08.2021 16:30 ChanceJ

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, 21.06.2019 22:00
Which one of the following identifies the primary a purpose of information classification processes? a. define the requirements for protecting sensitive data.b. define the requirements for backing up data.c. define the requirements for storing data.d. define the requirements for transmitting data.
Answers: 2
question
Computers and Technology, 22.06.2019 09:40
Sarah is having a hard time finding a template for her advertising business that she may be able to use at a later date and also make it available to her colleagues
Answers: 1
question
Computers and Technology, 22.06.2019 14:50
Drag each label to the correct location on the image list the do’s and don’ts of safeguarding your password. a. keep yourself logged in when you leave your computer.b. don’t write your password down and leave it where others can find it.c. share your password with your friends.d.each time you visit a website,retain the cookies on your computer.e. use a long password with mixed characters.1. do's 2. don'ts
Answers: 2
question
Computers and Technology, 22.06.2019 19:30
Singing in the rain: this first part of the film shows the early history of motion picture. how accurate do you think the portrayal of the early motion picture industry is? why? is historical accuracy important in films and theater productions? explain.
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
Questions on the website: 13722362