Question: The method convertVolume ( ) has an integer parameter. Define a second convertVolume ( ) method that has two integer parameters. The first parameter is

The method convertVolume() has an integer parameter. Define a second convertVolume() method that has two integer parameters. The first parameter is the number of cups and the second parameter is the number of tablespoons. The method should return the total number of tablespoons.
Ex. If the input is 72, then the output is:
7 cups yields 112 tablespoons.
7 cups and 2 tablespoons yields 114 tablespoons.
Note: The total number of tablespoons can be found using (cups *16)+ tablespoons.
import java.util. Scanner;
public class VolumeMethods {
public static int convertvolume (int cups){
}
return cups **16;
1* Your code goes here "/
public static void main(String[] args){
Scanner scnr = new Scanner(System. in);
int cupsused;
int tablespoonsused;
int totalTablespoons1;
int totalTablespoons 2 ;
cupsused = scnr. nextInt ();
 The method convertVolume() has an integer parameter. Define a second convertVolume()

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!