008-004-009
Calculate Tax-Inclusive Price Method
Easy
Problem Description
Calculate Tax-Inclusive Price Method
In this problem, you will create a program that implements calculateTaxPrice(int price, double taxRate) to receive two parameters and return the tax-inclusive price, then calls it with price = 1000 and taxRate = 0.1 and prints the result to standard output.
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