Create a method called calcVal that has two numeric paramete…
Create a method called calcVal that has two numeric parameters and returns a number. Return the sum of those two values (first plus the second). The parameter and return data types should match the data type for the promptUserData method created in the last question. Just like the last question, don’t include the main method or public class, just the method described. If needed, assume Scanner package has been imported. Also include the javadoc.
Read DetailsWrite a method called promptUserData that has no parameters…
Write a method called promptUserData that has no parameters and returns an int. Prompt the user for an int. This int is what is returned. Don’t include a main method or public class; you can also assume Scanner has been imported. Just the method described above. Include the Javadoc.
Read DetailsCreate a method called calcVal that has two numeric paramete…
Create a method called calcVal that has two numeric parameters and returns a number. Return the product of those two values. The parameter and return data types should match the data type for the promptUserData method created in the last question. Just like the last question, don’t include the main method or public class, just the method described. If needed, assume Scanner package has been imported. Also include the javadoc.
Read Details