A good answer might be:
| ||||||||||||||||||||
Using Boolean Expressions
In an A clothing store wants a program that calculates the tax on an item. Clothing that costs $100 or more has a 5% tax. Clothing that costs less than $100 is tax free. Write a program that asks for the price, then calculates the tax and prints it out, and prints out the total cost of the item.For simplicity the price will be an integer. All print statements will be placed after the if statement.
Here is a skeleton of the program:
Here are some program fragments to use in filling the blanks: tax = price * taxRate; new BufferedReader ( new InputStreamReader( System.in ) ); inData = stdin.readLine(); double taxRate = 0.05; price >= 100 import java.io.*; tax = 0; | ||||||||||||||||||||
QUESTION 12:Complete the program by filling in the blanks. Click Here after you have answered the question |