Computer Science, asked by shabanaali508, 1 month ago

A. Write algorithms for the following:
1.To find the Simple Interest using the Principal, Rate and Time. [Hint SI = (P x R x T) ÷100]
2. To find the area of a triangle with a given base and height. [Hint:Area of ∆ = ½ × base×height]
3. To find the profit% of an item when its profit and cost price are given. [Hint: Profit% = (Profit ÷ CP) ×100%]​

Answers

Answered by abhyas29
2

Answer:

1.To find the Simple Interest using the Principal, Rate and Time. [Hint SI = (P x R x T) ÷100]

Step 1: Read P

Step 2: Read R

Step 3: Read T

Step 4: Set SI = (P * R * T) / 100

Step 5: Print SI

2. To find the area of a triangle with a given base and height. [Hint:Area of ∆ = ½ × base×height]

Step 1: Read B

Step 2: Read H

Step 3: Set A = 0.5 * B * H

Step 4: Print A

3. To find the profit% of an item when its profit and cost price are given. [Hint: Profit% = (Profit ÷ CP) ×100%]​

Step 1: Read P

Step 2: Read C

Step 3: set Percent = (P / C) * 100

Step 4 Print Percent

Similar questions