Question: USE C PROGRAMMING LANGUAGE ONLY (#include ) Thankyou You are given N customerdata where each data contains AccNumber, name, age, and balance. The given data

USE C PROGRAMMING LANGUAGE ONLY (#include)

USE C PROGRAMMING LANGUAGE ONLY (#include) Thankyou You are given N customerdata

where each data contains AccNumber, name, age, and balance. The given data

is sorted lexicographically ascending based on the AccNumber. Then, there are M

Thankyou

You are given N customerdata where each data contains AccNumber, name, age, and balance. The given data is sorted lexicographically ascending based on the AccNumber. Then, there are M queries. For each query, given a variable x. You are asked to tell whether a customer whose AccNumber is x exists. If so, output the customer's data. If the customer does not exist, output"-1". Input Format The first line consists of an integer N. The next N lines contain the given data. Each data consists of AccNumber, name, age, and balance, respectively, separated by commas. The next line consists of an integer M. The next M lines consist of an integer x, which representeach query. Output Format For each query, if the customerexists, then print the data with the following format: "

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!