Question: Write this program with java. 7. Sales Tax Write a program that will ask the user to enter the amount of a purchase. The program

 Write this program with java. 7. Sales Tax Write a programthat will ask the user to enter the amount of a purchase.The program should then compute the state and county sales tax. Assume

Write this program with java.

7. Sales Tax Write a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales tax is 4 percent and the county sales tax is 2 percent. The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of purchase plus the total sales tax). Hint: Use the value 0.02 to represent 2 percent, and 0.04 to represent 4 percent. 12. String Manipulator Write a program that asks the user to enter the name of his or her favorite city. Use a string variable to store the input. The program should display the following: The number of characters in the city name The name of the city in all uppercase letters The name of the city in all lowercase letters The first character in the name of the city 20. Planting Grapevines A vineyard owner is planting several new rows of grapevines and needs to know how many grapevines to plant in each row. She has determined that after measuring the length of a future row, she can use the following formula to calculate the number of vines that will fit in the row, along with the trellis end-post assemblies that will need to be constructed at each end of the row: V=R-2 ES The terms in the formula are: Vis the number of grapevines that will fit in the row. R is the length of the row, in feet. E is the amount of space used by an end-post assembly. S is the space between vines, in feet. Write a program that makes the calculation for the vineyard owner. The program should ask the user to input the following: The length of the row, in feet The amount of space used by an end-post assembly, in feet The amount of space between the vines, in feet Once the input data has been entered, the program should calculate and display the number of grapevines that will fit in the row

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!