A company has determined that its annual profit is typically 23 percent of total sales. Write a program that asks the user to enter the projected amount of total sales, and then displays the profit that will be made from that amount
Sales Prediction
A company has determined that its annual profit is typically 23 percent of total sales. Write a program that asks the user to enter the projected amount of total sales, and then displays the profit that will be made from that amount.
Hint: use the value 0.23 to represent 23 percent.
Solution
#Get the total sales
projectedTotalSale = float(input(“Enter the projected amount of total sales : “))
#calculate the total profit
profit = projectedTotalSale * .23
#display the profit
print(“profit will be :”,format(profit , ‘,.2f’))