Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I have been stuck and having trouble understanding this question for days and I keep getting errors with my code I am currently using Java
I have been stuck and having trouble understanding this question for days and I keep getting errors with my code I am currently using Java with processing NOT PYTHON JAVA. This is a picture or the question and what the result is supposed to look like Question : Create a sketch named QTwoSevenfirstname. The purpose of this program is to determine which of two entered numbers is closest to without going over. The program will start by asking the userstudent for two numbers. Each number must be stored in an appropriately named variable. These numbers are passed to a function, described below. This function returns a single value. Print the message the value returned is # where the # is the value returned by the function. Write a function according to the following criteria: accepts two integer parameters. returns the value of the parameter that is nearest to without going over. returns zero if they both go parameters are greater than returns zero if either parameter is zero or a negative number or if both are negative. Give your function an appropriate name based on the characteristics above Some examples you can use to test your function: Parameters Return Value Input Please enter number OK CancelInput Please enter number OK Cancel The value returned is
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started