Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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:
" 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 1Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started