subject

• Import and open the Tip02 project. • Complete the findTotal() method, which should:
– Calculate a total based on the tax, tip, and originalPrice fields
– Print a person’s total
/*This is what everyone owes before tax and tip:
Person 1: $10
Person 2: $12
Person 3: $9
Person 4: $8
Person 5: $7
Person 6: $15 (Alex)
Person 7: $11
Person 8: $30
*/
package Tip02;
public class Calculator {
public double tax = .05;
public double tip = .15; //Change tax and tip if you prefer different values
public double originalPrice = 0;
public void findTotal(){
//Calculate an individual's total after tax and tip
//Print this value
}
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
Write a program that uses a widgetviewer object to do the following: generate two random integers between 1 and 9 (inclusive). name one of them x, the other y. display them to the user using jlabel objects. create a jlabel object displaying the text "enter an operation number." create a jtextfield for the user's input. create a jbutton displaying the text "press here when you've entered your operation." use addandwait to add it to the widgetviewer object. when the user clicks the jbutton, evaluate operation in the following order to determine the one and only mathematical operation to perform on x and y. use a jlabel to display the result. if operation is between 1 and 10 inclusive, add x and y. if operation is evenly divisible by 4, subtract y from x. if operation is evenly divisible by 5, use integer division to divide y into x. if operation is an even number, use floating point division to divide y into x. if none of the other tests on operation apply, multiply x and y. note: operation can be negative or zero.
Answers: 2
question
Computers and Technology, 23.06.2019 11:00
How should you specify box sizes on a web page if you want the boxes to vary according to the font size of the text they contain? a. in pixels b. in inches c. as percentages d. in em units
Answers: 2
question
Computers and Technology, 23.06.2019 14:00
What is html ? give a small description about html
Answers: 2
question
Computers and Technology, 24.06.2019 01:30
Suppose a cpu with a write-through, write-allocate cache achieves a cpi of 2. what are the read and write bandwidths (measured by bytes per cycle) between ram and the cache? (assume each miss generates a request for one block.)
Answers: 1
You know the right answer?
• Import and open the Tip02 project. • Complete the findTotal() method, which should:
– Calcu...
Questions
question
Mathematics, 15.06.2021 17:00
question
Mathematics, 15.06.2021 17:00
question
Mathematics, 15.06.2021 17:00
question
Arts, 15.06.2021 17:00
question
Mathematics, 15.06.2021 17:10
question
English, 15.06.2021 17:10
question
Mathematics, 15.06.2021 17:10
question
Geography, 15.06.2021 17:10
question
Social Studies, 15.06.2021 17:10
question
Mathematics, 15.06.2021 17:10
Questions on the website: 13722367