Sales Prediction A company has determined that its annual profit is typically 23 percent of total sales. Design 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

Respuesta :

Answer:

The answer to this question is given below in the explanation section.

Explanation:

 This question is about calculating the profit from the annual projected sales of a company.      

You can calculate the profit by using the following formula:

profit = annual projected sales x annual profit.

So, the code (solution) is given below, however, it is noted that this program is written in c++ language.

#include <iostream>

using namespace std;

int main()

{

   long double annualProfitPercentage=0.23;// annual profit 23%.

   long double projectedSales,profit;/* declare variable to store the annual projected sales and profit */

   cout<<"*********Sales Prediction*********\n"; //output heading

   cout<<"\nEnter the project amount of total sales: ";// take input from user

   cin>>projectedSales;// store input into variable projectedSales

   

   profit = projectedSales *  annualProfitPercentage;//calculate profit

   cout<<"Profit is: "<<profit;//print result

   

   

   

   return 0;

}

ACCESS MORE