Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A given series of numbers and arithmetic operations can be reached by different numbers.For example {4,5,3,2,10,1} numbers and {+, * }this arithmetic operations using like

A given series of numbers and arithmetic operations can be reached by different numbers.For example {4,5,3,2,10,1} numbers and {+, * }this arithmetic operations using like this

5*3+2+(1+10)*4

(1+5)*10+2*(3+4)

example:{2,5,1,4,10,3} {+,*,/ } target number is 45

output like this : 4 + (5 + (3(2 + (10/1))))

number format should be

(xi ?(xj ?(xk ?(xi?.......))))

please help me for this problem recursice solution

*There can be more than one result, in this case you only need one result. You do not have to use all of the arithmetic operations, but you can not use any other operations. The number sequence will only consist of integers. What you can do you should use integer arithmetic in operations, if you can not find the result exactly, you should find the closest result you can find.

* PLS can not be used STACK !!!!

*US?NG ARRAY

*arithmetic operations and number array to be taken from user

java programming language to be used.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions