> Where do these numbers: -3.2, -0.5, 1.0, 2.3, 4.6, 6.2, 12.0, even come from?
> Are they just randomly chosen numbers for the purpose of your example?
Yes.
> We haven't covered arrays yet, so I shouldn't use them.
> However, I have one more class before the assignment is due
Good, you don't need arrays, and you have adequate time to work on your code.
The structure of your code would be:
1. Prompt for, and accept from the user the value x, entered via the keyboard (standard input)
2. Compute the value of ex; you can easily work out how to do that from the earlier posts in this thread.
3. Print out the result computed in step 2.
That's all that you are asked to do; arrays are not required at all.