Grossmont College Determine if A Function Is Injective Project
Question Description
I’m working on a java project and need an explanation and answer to help me learn.
It’s not unusual in programming to have to determine something about something and if it can be used further down in the program. In this program you are going to determine if a function is injective (one-to-one) given the domain 1 through 100.
These are the functions your program needs to test:
t: Z ? Z. t(x) = 3x
t: Z ? Z. t(x) = x2
t: Z ? Z. t(x) = 2x – 2
I like to have all of our programs have some kind of user input so please create a menu where I can pick which function I would like to test. Your code should not hard code the answer but instead test the functions given the domain and determine if they are an injective (or one-to-one) function.
Your program must be submitted as a .java file.
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."