Question: Group Exercises Name 1. Design a Java modular program that calls a void method named display Address to display the following information on separate lines:

 Group Exercises Name 1. Design a Java modular program that calls

Group Exercises Name 1. Design a Java modular program that calls a void method named display Address to display the following information on separate lines: Name the class Address. Your name Your address, with city, state, and ZIP Your telephone number Your college major - What is the method header? Does the method need parameters, if so how many? 2. Design a Java modular program that will ask the user to enter the amount of a purchase. The program should then call a void method called compute Taxes to compute the state and county sales tax. Assume the state sales tax is 4 percent and the county sales tax is 2 percent. The method should also 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. Name the class Taxes. - What is the method header? Does the method need parameters, if so how many? 3. Design a Java modular program that uses a void method named convertTemp to convert Celsius temperatures to Fahrenheit temperatures. The formula is as follows: Fahrenheit = 9.0/5 * Celsius +32 The program should ask the user to enter a temperature in Celsius, and then the method also displays the temperature converted to Fahrenheit. Name the class Temperature. - What is the method header? Does the method need parameters, if so how many? 4. Design a Java modular program that asks the user for the number of males and the number of females registered in a class. The program uses a void method named calPercentages to calculate and display the percentage of males and females in the class. Hint: Suppose there are 8 males and 12 females in a class. There are 20 students in the class. The percentage of males can be calculated as 8 + 20 -0.4.8.20-0.4, or 40%. The percentage of females can be calculated as 12 + 20 = 0.6, 12420-0.6, or 60%. Name the class Percentages. What is the method header? Does the method need parameters, if so how many

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!