Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started