pratik-choudhari / AlgoCode

Welcome everyone!🌟 Here you can solve problems, build scrappers and much moreπŸ’»
https://github.com/pratik-choudhari/AlgoCode
MIT License
131 stars 166 forks source link

Hotel prices #406

Closed pratik-choudhari closed 4 years ago

pratik-choudhari commented 4 years ago

Feature βœ…

Description

A hotel has two types of room standard and luxury. Every customer mentions the number of bedrooms and bathrooms required for that particular room.

Cost of standard room = 5 * bedrooms + 2 * bathrooms

Cost of luxury room = cost of standard room for same bedrooms and bathrooms + 200

The task is to print the total cost of rooms requested.

Example

First line will be the number of test cases. Room data format room-type bedrooms bathrooms. There can be any number of standard and luxury rooms.

Input: 2 standard 3 1 luxury 1 1

Output: 224

Explanation: Standard fee: (5 * 3 + 2 * 1) luxury: (5 * 1 + 2 * 1) + 200 total = standard + luxury

Contributors are supposed to mention their coding language while asking for assignment

sohan-naidu commented 4 years ago

Hi, regarding the output of the example case mentioned, shouldn't the output be 224?

A-Annan commented 4 years ago

Can I work on it ?

anshika0207 commented 4 years ago

@pratik-choudhari can you assign this to me? I can code in c++

gaurangagarwal commented 4 years ago

I would like to work on this issue. Can you assign me for Java ?

pratik-choudhari commented 4 years ago

@A-Annan Lang?

gaurangagarwal commented 4 years ago

Hi @pratik-choudhari , The second test case is luxury 1 1, which means the number of bed rooms is 1 and bathrooms is 1. In the explanation section, you have considered the bedrooms and bathrooms as 3 and 1 respectively even for Luxury rooms (may be based on the 1st test case). Can you please clarify ?

pratik-choudhari commented 4 years ago

@anshika0207 I mistakenly assigned you to this issue. You are already assigned to 2 issues which is the limit to this repository.

pratik-choudhari commented 4 years ago

@gaurangagarwal @therealkiddo Mistake from my side, rectified now. Thanks for bringing that up!πŸ‘

amulya12 commented 4 years ago

can you assign it to me. I can code in JAVA

ShubhamNagure commented 4 years ago

Hi @pratik-choudhari Please assign me this task

pratik-choudhari commented 4 years ago

@ShubhamNagure Lang

ShubhamNagure commented 4 years ago

@ShubhamNagure Lang

Python3 or Java. Whichever you prefer.

ShubhamNagure commented 4 years ago

@ShubhamNagure Lang

Python3 or Java. Whichever you prefer.

Hi @pratik-choudhari , Task completed. Please check and review #432 PR. Thanks for the opportunity.

manojrao3619 commented 4 years ago

Hi @pratik-choudhari , can you assign it to me for C++/JavaScript.

ananthalakshmiragi commented 4 years ago

hi, can do it in java or javascript. Please assign.

pratik-choudhari commented 4 years ago

@manojrao3619 C++ and @ananthalakshmiragi Js