Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Searching Google Pay saved Account Your Google Pay app has several saved accounts, now you wish to make a transaction using one of the saved

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Searching Google Pay saved Account Your Google Pay app has several saved accounts, now you wish to make a transaction using one of the saved accounts but you have only some information about that account. Format of information of an account > Task Your task is to give all the information of the saved accounts in increasing order of Bank account numbers based on the user's input information. Note:- - No two accounts can have the same account number or registered_mobile_number. - At least one record will match with the user's input information Example Assumptions - N=3 - A=[[11221909312, rohan, garg, 7384728384, 1022], [11221909566, shivam, kumar, 9128494856, 1022], [11201339211, shivam, sharma, 7384728384, 1987]] - account_holder_first_name - shivam Approach - Output will be - 11201339211 shivam sharma 73847283841987 - 11221909566 shivam kumar 91284948561022 Function description Complete the function solve provided in the editor. This function takes the following 4 parameters and returns the required answer: - N : the number of saved accounts - A : is the 2Dvector of the string denoting the information of N saved accounts. - D: denoting the name of information the user has - V : denoting the value of that information Input format Note: This is the input format that you must use to provide custom input (available above the Compile and Test button). - The first line contains a single integer N, denoting the number saved accounts - Each of the next N lines contains 5 strings denoting the information of saved accounts. - The next line contains a string D denoting the name of the information the user has - The last line contains a string V denoting the value of the information the user has Output format You have to print all the information of the saved accounts in increasing order of Bank account number based on the user input information. Constraints 1N10001A[i][j]15 All the information of the account contains only lowercase letters and numbers. Explanation Given - N=3 - A=[[11221909312, rohan, garg, 7384728384, 1022], [11221909566, shivam, kumar, 9128494856, 1022], [11201339211, shivam, sharma, 7384728384, 1987]] - account_holder_first_name - shivam Explanation Given - N=3 - A=[111221909312, rohan, garg, 7384728384, 1022], [11221909566, shivam, kumar, 9128494856, 1022], [11201339211, shivam, sharma, 7384728384, 1987] - account_holder_first_name - shivam Approach Output will be - 11221909312 rohan garg 73847283841022 - 11221909566 shivam kumar 91284948561022

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

Students also viewed these Databases questions

Question

Analyze the impact of labor unions on health care.

Answered: 1 week ago

Question

Assess three motivational theories as they apply to health care.

Answered: 1 week ago

Question

Discuss the history of U.S. labor unions.

Answered: 1 week ago