Answered step by step
Verified Expert Solution
Link Copied!

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)

image text in transcribed

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

What is human nature?

Answered: 1 week ago