/**
 * As a photographer, you want to calculate the sales percentage of your photos
 * based on the profit earned and the discounted price at which they were sold.
 *
 * The formula to calculate the sales percentage is:
 * sales_percentage = (profit / discounted_price) * 100
 *
 * @param profit the profit earned from selling the photo (Float).
 * @param discountedPrice the discounted price at which the photo was sold (Float).
 * @return the calculated sales percentage as a floating-point number.
 *
 * Example:
 * calculateSalesPercentage(300.25, 1298.99) should return 23.088338856988158.
 */
fun calculateSalesPercentage(profit: Float, discountedPrice: Float): Float {

    val salesPercentage = (profit / discountedPrice) * 100
    return salesPercentage
}
/**
 * As a photographer, you want to calculate the sales percentage of your photos
 * based on the profit earned and the discounted price at which they were sold.
 *
 * The formula to calculate the sales percentage is:
 * sales_percentage = (profit / discounted_price) * 100
 *
 * @param profit the profit earned from selling the photo (Float).
 * @param discountedPrice the discounted price at which the photo was sold (Float).
 * @return the calculated sales percentage as a floating-point number.
 *
 * Example:
 * calculateSalesPercentage(300.25, 1298.99) should return 23.088338856988158.
 */
fun calculateSalesPercentage(profit: Float, discountedPrice: Float): Float {
/**
 * As a photographer, you want to calculate the sales percentage of your photos
 * based on the profit earned and the discounted price at which they were sold.
 *
 * The formula to calculate the sales percentage is:
 * sales_percentage = (profit / discounted_price) * 100
 *
 * @param profit the profit earned from selling the photo (Float).
 * @param discountedPrice the discounted price at which the photo was sold (Float).
 * @return the calculated sales percentage as a floating-point number.
 *
 * Example:
 * calculateSalesPercentage(300.25, 1298.99) should return 23.088338856988158.
 */
fun calculateSalesPercentage(profit: Float, discountedPrice: Float): Float {

    val salesPercentage = (profit / discountedPrice) * 100
    return salesPercentage
}