Question: Please write in Java language on Apache Netbeans or on ideone Lab 2 - Array The purpose of this lab is to review array. Description
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 23 452, the program will print the value of polynomial 3x + 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
