Problem: Place random numbers between 10 and 40 in a one dimensional array that has 10 members and calculate the function outputs values according to the following function and store it to a new array, then find which numbers gives the minimum result. OBJECT ORIENTED PROGRAMMING LESSON LABORATORY EXERCISE-3 Example: Array1: 10 20 Array2: Results 1000 80 Write your program using Java and copy your codes to a text file which has your name and surname. Then load it into UZEM under the provided link. 4x f(x) = x³ -2x 12 13 1728 2197 Result: 20 gives the minimum number. if x ≥ 20 and x ≤ 30 if x ≥ 10 and x < 20 if x > 30 13 2197 14 2744 16 4096 20 80 22 88 21 84

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 12PE
icon
Related questions
Question

please fast

Problem: Place random numbers between 10 and 40 in a one dimensional array that has 10
members and calculate the function outputs values according to the following function and store
it to a new array, then find which numbers gives the minimum result.
Example: Array1:
20
OBJECT ORIENTED PROGRAMMING LESSON
LABORATORY EXERCISE-3
10
Write your program using Java and copy your codes to a text file which has your name and
surname.
Then load it into UZEM under the provided link.
Array2: Results
1000 80
4x
f(x) = x³
-2x
12
13
1728 2197
Result: 20 gives the minimum number.
if x ≥ 20 and x ≤ 30
if x ≥ 10 and x < 20
if x > 30
13
2197
14
16
2744 4096
20
80
22
88
21
84
Transcribed Image Text:Problem: Place random numbers between 10 and 40 in a one dimensional array that has 10 members and calculate the function outputs values according to the following function and store it to a new array, then find which numbers gives the minimum result. Example: Array1: 20 OBJECT ORIENTED PROGRAMMING LESSON LABORATORY EXERCISE-3 10 Write your program using Java and copy your codes to a text file which has your name and surname. Then load it into UZEM under the provided link. Array2: Results 1000 80 4x f(x) = x³ -2x 12 13 1728 2197 Result: 20 gives the minimum number. if x ≥ 20 and x ≤ 30 if x ≥ 10 and x < 20 if x > 30 13 2197 14 16 2744 4096 20 80 22 88 21 84
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT