Skip to content

Kevin-Kinyua/Hackerrank_Challenge-01

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Hackerrank_Challenge-01

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 is totalCost dollars., where is the rounded integer result of the entire bill ( with added tax and tip).

Sample Input

12.00 20 8 Sample Output

The total meal cost is 15 dollars.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published