Question: Java Programming Lab 2 - Array The purpose of this lab is to review array. Description Write a program that reads an integer M (the
Java Programming Lab 2 - Array The purpose of this lab is to review array. Description Write a program that reads an integer M (the degree of the polynomial), then M +1 coefficients of the polynomial and then an integer x and prints the value of the polynomial at x. The input is a sequence of integers and the output will be a single integer. For example, for input 2 3 4 5 2, the program will print the value of polynomial 3x2 + 4x + 5 at x = 2, which is 25. Sample Input and Output Sample input: 35-6 7-82 Expected output: 22 Sample input: 43-854-245 Expected output: 996 Submission Submit the zip file of the project (File -> Export Project)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
