008-004-009
Calculate Tax-Inclusive Price Method
Easy
Problem Description
Calculate Tax-Inclusive Price Method
In this problem, you will implement calculateTaxPrice(int price, double taxRate) that receives a price and a tax rate, and returns the tax-inclusive price as an int.
Learning Objectives:
- Define and call a method with multiple parameters of different types
- Understand type conversion when combining
intanddoublein arithmetic - Set an appropriate return type for a method
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
Sign Up