Answer:
import java.util.Scanner;
public class SalesTax
{
public static void main(String[] args)
{
// Identifier declarations
final double TAX_RATE = 0.055;
double price;
double tax;
double total;
String item;
// Create a Scanner object to read from the keyboard.
Scanner keyboard = new Scanner(System.in);
// Display prompts and get input.
System.out.print("Item description:");
item= keyboard.nextLine();
System.out.print("Item price: $");
price = keyboard.nextDouble();
// Perform the calculations.
tax = price + TAX_RATE;
total = price + tax;
// Display the results.
System.out.print (item + " $");
System.out.println(price);
System.out.print("Tax $");
System.out.println(tax);
System.out.print("Total $");
System.out.println (total);
}
}
Explanation:
Answer:
Be kind and thankful
Explanation:
If Tyra does not agree with her friend's feedback, she does not have to say it outrightly to her friend. She has to use softer words to disagree. This is where being kind comes in.
Her friend has made efforts by providing this feedback Even if it is not exactly what she wants to hear. It would be polite for her to say thank you.
Then she has to respectfully disagree to avoid coming off as someone who is totally unreceptive of the opinion of others.
In a parallel connection, the voltage is same in every branch.
Now, three <span>three resistors connected in parallel.
R1 = 2k ohm
</span>R2 = 6k ohm
R3 = 10k ohm
in parallel, net resisitance =
Now, putting the values, we get, R net = 1.30 k ohm.
Ans, voltage = 100 VDC
Thus, power =
= 7.69 Watt
An “iframe” maybe idk what is asking
Answer:
Answer is in the provided screenshot.
Explanation:
You are making this more confusing for yourself by doing it like this.
I have added variables at the top of your program for game messages that are repeated - and also simplified the given cases for if the player wins, loses or ties.
I invite you to now make a point tracker that, at the start of each game says: You have "x" points.
And you gain a point for winning, lose a point for losing and nothing happens if you tie.
To add a while loop - simply use the "while" keyword, and anything within the loop will repeat while the given condition is true.