answersLogoWhite

0


Best Answer

f(x)=2x+2. Put in 0, 1/2, 1, 3/2, 2... and you will get integer values. That is for the domain. The numbers you get when you put that in are the range integral values.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which sequence of fx equals 2x plus 2 has integer input values?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write a program that takes a list of all positive integers from input and counts as the integers are input?

// create an BufferedReader from the standard input stream BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String currentLine = ""; int total = 0; // read integers System.out.print("Input an integer: "); while (!(currentLine = in.readLine()).equals("")) { int input = 0; try { input = Integer.valueOf(currentLine); total += input; } catch (final NumberFormatException ex) { System.out.println("That was not an integer."); } System.out.print("Input an integer: "); }


How do you write a program that accepts 50 integer values and sort them in basic programming?

Create an array with 50 elements and input the integers one a time, filling the array. Use an insertion sort on the array for each input except the first. Alternatively, input the values first and then use insertion sort.


Write a line of code that asks the python user to input an integer greater than 0 and store this value in a variable and display its value?

integer = input("Please input an integer greater than 0: ") print(integer)


What is a mapping or pairing of input values with output values?

A relation is a mapping or pairing of input values with output values.


Q' is connected to J input and K equals 1 If clock signal is successively applied 6 times what is output sequence?

010101


Which scanner class method would you use to read integer as input?

The method Scanner.nextInt() returns an integer obtained as user input.


Is there a way to create variables as needed in C based on user input?

Yes. You can store any number of values input at runtime using a variable-length array or any other sequence container such as a list.


Input values for a function is called?

The Input or X values are called the Domain.


Collection of all input values?

A collection of all input values is called 'Data'.


How to write a C plus plus Program to convert a string into an integer?

std::string input = ""; std::getline (std::cin, input); // get input from stdin std::stringstream ss (input); // place input in a string stream integer num = 0; if (ss >> num) // extract integer from string stream { // Success! } else { // Fail! }


Write a program that takes 5 numbers 1 to 10 from user and then prints the number of distinct values?

The simplest solution is to use a std::set<size_t> sequence container to store the values as they are input. Duplicate entries are ignored automatically, thus when all 5 numbers have been input, the set will have at least 1 number but no more than 5. Thus the size of the set represents the count of distinct values that were input.


Write a function that will accept a series of integer values in a list. Terminate sequence by typing -999. Then display the content of list.?

public static final void readIntList() { // set up our input buffer BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String currentLine; // I'll use a linked list for this; // replace it with whatever best suits your purpose List<Integer> intList = new LinkedList<Integer>(); // loop until we read -999 while (!(currentLine = in.readLine()).equals("-999")) { try { // convert from string to int int currentNumber = Integer.parseInt(currentLine); // add to the list intList.add(currentNumber); } catch (final NumberFormatException ex) { // we go here if the user didn't type in an integer } } // display our lovely list System.out.println(intList); }