2 www MIN TH05139 Write a C++ program to achieve the moving Detine a class that contains plant codeer), plant price on d
Posted: Mon Jun 06, 2022 6:41 pm
statement All the plants are transferred using a destructor Constraint 1-N-10 First line of input represents the number of test cases, N Fest lose of the test case represents the plant code Second time of the test case represents the plant name -Third the of the test case represents the plante Fourth toe of the test case represents the plant price Output Display the plant details in ascending order based on plant, price Display All plants are branded hp Fire
te ut of estion AM 10:40 AM write a program to achieve the following: Time left 0:49:36 Define a structure Book that contains book book name(string), book author(string). no of pages(integer) Read the details of N books, where N is to be read by user (Use Array of Structures) Display the details of all the books Display the details of the books written by a particular author 1<=N<=10 First line on input represents the total number of test-cases Le N First line of each test-case represents the book no Second line of each test-case represents the book_name - Third line of each test-case represents the book author- Fourth line of each test-case represents the no_of_pages Last line of the input represents the Author-name Output: Display all the book details • Display all the book details of a particular author For example: Test Input Result 1 3 All books details: 101 C coding Balagurumomy 200 hp Constraints: Input: 101 S F
2 www MIN TH05139 Write a C++ program to achieve the moving Detine a class that contains plant codeer), plant price on dala mende e member function day peceased), to display the phant detal Read the details of N wware N is the reber mad by user Read the plant details using Constructor Display the plant details in ascending order based on plant price using a function, dispeceased) Define the function outside the class At the end, display the te ut of estion AM 10:40 AM write a program to achieve the following: Time left 0:49:36 Define a structure Book that contains book book name(string), book author(string). no of pages(integer) Read the details of N books, where N is to be read by user (Use Array of Structures) Display the details of all the books Display the details of the books written by a particular author 1<=N<=10 First line on input represents the total number of test-cases Le N First line of each test-case represents the book no Second line of each test-case represents the book_name - Third line of each test-case represents the book author- Fourth line of each test-case represents the no_of_pages Last line of the input represents the Author-name Output: Display all the book details • Display all the book details of a particular author For example: Test Input Result 1 3 All books details: 101 C coding Balagurumomy 200 hp Constraints: Input: 101 S F