1

Tender scrutiny using reference variable

Just for Practice 3 [8-Jan-2018 to 31-Mar-2018]

CSE1002 Bonus Practice Sheet Winter 2018__Batch 3 [17-Mar-2018 to 7-Apr-2018]

Program ID- 1141

A government organization received tenders from ‘n’ vendors for their campus renovation work. It has to determine and select the vendor who had quoted the least amount for this renovation work. Given the registration number, address and amount quoted by vendor, design an algorithm and write a C++ code to print the details of vendor for whom the tender will be given. Write a function that returns the details of vendor by reference concept.

Input Format:

Number of tenders received

Registration number of vendor1

Address of vendor1

Amount quoted by vendor1

Registration number of vendor2

Address of vendor2

Amount quoted by vendor2

………

………….

Registration number of vendor n

Address of vendor n

Amount quoted by vendor n

Output Format:

Print the registration number of vendor who won the tender

Print address of vendor who won the tender

Boundary Conditions:

Number of Tender >1

Code

Please Comment Working if the code worked to you

If you have other working codes please comment the codes enclosing with <pre> and </pre> 🙂

Example: <pre> Your Code </pre>

C++ Code

C++ Code [By Chir Patel]

The Above Codes are for reference only. It doesn't mean everyone to directly copy/paste those codes.

 

Click Here to Leave a Comment Below 1 comments
Aravind - January 11, 2018

today’s daily challenge




1



3

Reply

Leave a Reply:

This site uses cookies and by using the site you are consenting to this.