Question: computer science Pls solve this question soon , don't use any AI otherwise I will report to your account send me solution fast Design, code,

computer science Pls solve this question soon , don't use any AI otherwise I will report to your account send me solution fast
Design, code, and test a C program that uses dynamic programming to determine two separate subsequences of the input such that the first subsequence sums to the first target value and the second subsequence sums to the second target value.
The input should be read from standard input (which will be one of 1. keyboard typing, 2. a shell redirect )( from a file, or 3. cut-and-paste. Do NOT prompt for a file name!). The first line of the input will give n, the length of the sequence, along with the two target values. Each of the remaining input lines will include one sequence value. All values will be positive integers.
Your program should echo the target values and the input sequence. If a problem instance has a solution, each of the two subsequences should be output. Each value is to be preceded by its index in the input. A message should be provided for instances without a solution.
 computer science Pls solve this question soon , don't use any

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!