1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
andrezito [222]
3 years ago
10

// This class calculates a waitperson's tip as 15% of the bill public class DebugThree1 { public static void main(String args[])

{ double myCheck = 50.00; double yourCheck = 19.95; System.out.println("Tips are"); calcTip(myCheck); calctip(yourCheck); } public static int calcTip(int bill) { final double RATE = 0.15; tip = bill + RATE; System.out.println("The tip should be at least " + tip); } }
Computers and Technology
1 answer:
DENIUS [597]3 years ago
4 0

I added a decimal format to keep all decimals within the hundredths place. I also changed the calcTip method to void and the argument to a double. Void means the method doesn't return anything and changing bill to type double let's us pass numbers with decimals to the calcTip method. I hope this helps!

Download txt
You might be interested in
solve all and i.will try to make u Brainiest (tagdi picture that I have sended so that you can see this full question)​
Elis [28]

Answer: 1) Charles W 2) Charlie Bachman 3) MDB 4) the navigation pane

5) you can count the number of values in a range or table by using a simple formul, clicking a button or by using a worksheet function 6) save database - CTRL + S. open an existing database - CTRL + O. Rename a table - alt + JTA. Quit MS Access - CTRL + F4.

7 0
3 years ago
Under what circumstances would it be appropriate to use the sentence method of note taking, and what are the advantages and disa
frozen [14]
<span>The sentence method is writing every new thought as an individual sentence. The advantage of this is that it is much easier to go back and find where a specific topic's notes are as opposed to having to read through a paragraph of notes. The disadvantage of it is that it's harder to convey a deeper meaning when every thought is written in its own line.</span>
3 0
3 years ago
Read 2 more answers
Which line of code will allow a decimal point to be stored in a variable?
Helga [31]

Answer:

a float value u mean right?Explanation:

8 0
4 years ago
The gap between those who have easy access to the internet and technology and those who do not is known as the
kirill [66]
Computer concepts... hope it helps
7 0
3 years ago
A ____ is an unknown network.
Grace [21]

Answer:

its called a anonymous network

4 0
3 years ago
Other questions:
  • What are the three major functions of a game engine?
    13·1 answer
  • Why are computer programs so much longer now than they were in the late 1980?
    8·1 answer
  • Modify the provided code file to create a workout tracking program that lets the user enter (from the console) the distance they
    6·1 answer
  • Create pseudocode that could be used as a blueprint for a program that would do the following: An employer wants you to create a
    12·1 answer
  • What does it mean to be self demanding?
    12·1 answer
  • Keep true , never be ashamed of doing right decide on what you think is right and stick to it.
    14·1 answer
  • Which statement best describes network security
    8·2 answers
  • Please help me here: h t t p s : / / t i n y u r l . c o m / y t 7 r 3 y a m
    13·1 answer
  • Which of the following statements are true concerning abstraction and refinement? Select 3 options:
    14·1 answer
  • Anyone know how to fix this problem on Microsoft Team?
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!