Question: Record Finder NOTE : MAKE IN C LANGUAGE You are given N customer data where each data contains AccNumber, name, age, and ballance. The given

Record Finder

Record Finder NOTE : MAKE IN C LANGUAGE You are given N

customer data where each data contains AccNumber, name, age, and ballance. The

given data is sorted lexicographically ascending based on the AccNumber. Then, there

NOTE : MAKE IN C LANGUAGE

You are given N customer data where each data contains AccNumber, name, age, and ballance. 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 represent each query. Output Format For each query, if the customer exists, then print the data with the following format: " ". If there is no data to display, output"-1". Constraints 1 SN,M

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!