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



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: "
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
