/**
 * You are a graphic designer and you want to calculate how much profit you made from a project.
 * The project expenses include software costs, hardware costs, and any additional expenses like printing or shipping.
 * The client payment is the total amount the client has paid you for the project.
 * You need to write a function that calculates the profit you made from the project and returns it.
 *
 * @param projectExpenses Total expenses incurred for the project.
 * @param clientPayment Total payment received from the client.
 * @return Profit made from the project.
 *
 * Instructions:
 * - Calculate the profit by subtracting the project expenses from the client payment.
 * - Round the profit to two decimal places before returning it.
 *
 * Example:
 * calculateProfit(1000.50, 2500.75) => 1500.25
 */
fun calculateProfit(projectExpenses: Double, clientPayment: Double): Double {

    var profit = clientPayment - projectExpenses
    profit = String.format("%.2f", profit).toDouble()
    return profit
}
/**
 * You are a graphic designer and you want to calculate how much profit you made from a project.
 * The project expenses include software costs, hardware costs, and any additional expenses like printing or shipping.
 * The client payment is the total amount the client has paid you for the project.
 * You need to write a function that calculates the profit you made from the project and returns it.
 *
 * @param projectExpenses Total expenses incurred for the project.
 * @param clientPayment Total payment received from the client.
 * @return Profit made from the project.
 *
 * Instructions:
 * - Calculate the profit by subtracting the project expenses from the client payment.
 * - Round the profit to two decimal places before returning it.
 *
 * Example:
 * calculateProfit(1000.50, 2500.75) => 1500.25
 */
fun calculateProfit(projectExpenses: Double, clientPayment: Double): Double {
/**
 * You are a graphic designer and you want to calculate how much profit you made from a project.
 * The project expenses include software costs, hardware costs, and any additional expenses like printing or shipping.
 * The client payment is the total amount the client has paid you for the project.
 * You need to write a function that calculates the profit you made from the project and returns it.
 *
 * @param projectExpenses Total expenses incurred for the project.
 * @param clientPayment Total payment received from the client.
 * @return Profit made from the project.
 *
 * Instructions:
 * - Calculate the profit by subtracting the project expenses from the client payment.
 * - Round the profit to two decimal places before returning it.
 *
 * Example:
 * calculateProfit(1000.50, 2500.75) => 1500.25
 */
fun calculateProfit(projectExpenses: Double, clientPayment: Double): Double {

    var profit = clientPayment - projectExpenses
    profit = String.format("%.2f", profit).toDouble()
    return profit
}