Day 2 - code along to hackerrank 30 day challenge
Objective
In this challenge, you'll work with arithmetic operators. Check out the Tutorial tab for learning materials and an instructional video!
Task
Given the meal price (base cost of a meal), tip percent (the percentage of the meal price being added as tip), and tax percent (the percentage of the meal price being added as tax) for a meal, find and print the meal's total cost.
Note: Be sure to use precise values for your calculations, or you may end up with an incorrectly rounded result!
Input Format
There are lines of numeric input:
The first line has a double, (the cost of the meal before tax and tip).
The second line has an integer, (the percentage of being added as tip).
The third line has an integer, (the percentage of being added as tax).
Output Format
Print the total meal cost, where is the rounded integer result of the entire bill ( with added tax and tip).
Sample Input
12.00
20
8
Sample Output
15
Explanation
Given:
, ,
Calculations:
We round to the nearest dollar (integer) and then print our result, .
Github:
https://github.com/nanacnote
Linkedin:
/ owusu-k-adjei-bohyen-b9b4bb83
Instagram:
/ cedi_note
Music:
https://www.bensound.com/
On this page of the site you can watch the video online Day 2 hackerrank | 30 day coding challenges using python | python language | operators with a duration of hours minute second in good quality, which was uploaded by the user Alpha Code 16 January 2020, share the link with friends and acquaintances, this video has already been watched 61 times on youtube and it was liked by 0 viewers. Enjoy your viewing!