Computer Science, asked by abdullah060903112, 5 months ago

Write an algorithm and draw flowchart to print 30 terms in the following sequence 1,-2,3,-4,5,-6,7,-8,...........................upto 30 terms.
answer for brainliest

Answers

Answered by shraddha974096
0

Answer:

What is a flowchart?

• A flowchart is a picture (graphical representation) of the problem

solving process.

• A flowchart gives a step-by-step procedure for solution of a

problem.

Elements of a flowchart:

• Various geometrical shaped boxes represent the steps of the

solution.

• The boxes are connected by directional arrows to show the

flow of the solution.

Uses of a flowchart:

• To specify the method of solving a problem.

• To plan the sequence of a computer program.

• Communicate ideas, solutions.

Explanation:

Jyoti: If the answer is “Yes”, it means that selling price is more than the cost price and Savani has

made profit. Profit is calculated as Selling price – Cost price.

Moz: Good. You have used logical reasoning to solve this problem. Now complete the flowchart.

Tejas: If the answer is “No”, it means that cost price is less than selling price and Savani has made

loss. Loss is calculated as Cost price – Selling price.

Flowchart - How to find profit or loss.

Finding profit or loss when

CP = 325 and SP = 458

Start

Read CP=325

Read SP= 458

Condition:

Is 458 > 325? Profit= 458-325

End

Profit= Rs. 133

Profit = SP - CP

Is

SP > CP ?

Yes

No

Profit = SP - CP

Loss = CP - SP

Is

SP > CP ?

Similar questions