Question: Write a C++ code, that matches the following output: For Supplier A. If the days until check-in is 1, then the price increases by

Write a C++ code, that matches the following output:

Write a C++ code, that matches the following output: " For Supplier

" For Supplier A. If the days until check-in is 1, then the price increases by 50% For Supplier B, if the days until check-in is less than 3, then they are unable to book the hotel. * For Supplier C, if the days until check-in is 7 days or more, then the listing price decreases by 10% * For Supplier D, if the days until check-in is less than 7 days, then the listing price increases by 10% For all other suppliers, the price stays consistent. Your input is of the following format: N: the number of supplier rates (1N1,000,000) The next N lines will contain the city, supplier, and price separated by a comma (no space between words) Q: The number of user queries (1Q100) The next Q lines will contain a city and days until check-in separated by a comma (assume days until check-in, D is 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!