Question: Write an algorithm and draw a flowchart to check if a number is negative or positive or equal to zero. - If it is positive

 Write an algorithm and draw a flowchart to check if a

Write an algorithm and draw a flowchart to check if a number is negative or positive or equal to zero. - If it is positive calculate the square of the number. - If it is negative calculate the cube of the number. - Otherwise, display 'The number is neutral'. Write a python program to accept 4 numbers x,y,p and q as input from user if x modulus p is equal to 1 calculate Z=(px3+qy5)/4, Otherwise calculate Z=(p4+q4)/(x2+y2)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!