1.7k views
5 votes
A sales man has purchased a laptop of Rs 54,500 and he said the laptop of Rs 60,600 Write a program to calculate profit on sale.

User Cruizer
by
7.3k points

1 Answer

3 votes

Answer:

To calculate the profit on the sale, we need to know the selling price of the laptop. If the salesperson sold the laptop for Rs. 60,600, then the profit can be calculated as follows:

Profit = Selling Price - Cost Price

Profit = Rs. 60,600 - Rs. 54,500

Profit = Rs. 6,100

So the profit on the sale is Rs. 6,100.

Example of a "program" assuming its "code":

#!/usr/bin/env python3

cost_price = 54500

selling_price = 60600

profit = selling_price - cost_price

print("The profit on the sale is Rs.", profit)

Assuming you have some coding knowledge. You should be able to turn this into an executable for Python 3.

User Lost Koder
by
8.5k points