Computer Science, asked by boseprasanta1970, 5 hours ago

Draw a flowchart and write a program in

QBASIC to input the cost price of an article

purchased by Mr.Rajan. Also take input of

the sale price and determine Mr.Rajan has

incurred a profit, loss or no profit no loss.​

Answers

Answered by dreamrob
4

Program:

Input "Enter cost price of an article purchased by Mr.Rajan : ", cost

Input "Enter selling price of an article purchased by Mr.Rajan : ", selling

If cost < selling Then

   Print "Profit"

ElseIf cost > selling Then

   Print "Loss"

Else

   Print "No profit no loss"

End If

Output 1:

Enter cost price of an article purchased by Mr.Rajan : 100

Enter selling price of an article purchased by Mr.Rajan : 120

Profit

Output 2:

Enter cost price of an article purchased by Mr.Rajan : 100

Enter selling price of an article purchased by Mr.Rajan : 80

Loss

Output 3:

Enter cost price of an article purchased by Mr.Rajan : 100

Enter selling price of an article purchased by Mr.Rajan : 100

No profit no loss

Attachments:
Similar questions