P
popeyerayaz
I am a complete beginner and have the following instructions:
Develop a algorithm and flowchart that enables a user to choose one of
the following types of calculations to
perform on an input number.
Calculate the square of the number
Calculate the cube of the number
Round the number to two decimal places
Calculate the square root of the number
I only had to choose one and chose the "Calculate the square root of
the number".
I have the following algorithm
Algorithm
1. Input: a real number X
sqrt(x) = x^0.5
2. If (X < 0) Then
Output: X “ cannot be negative.”
STOP
Edif
My flowchart is on the following web page:
http://www.popeyeray.com/lesson6.htm
I would appreciate someone to check if this is mostly correct.
I also am not sure about the error message and how to put it into my
flowchart.
Thank you
Ray
Develop a algorithm and flowchart that enables a user to choose one of
the following types of calculations to
perform on an input number.
Calculate the square of the number
Calculate the cube of the number
Round the number to two decimal places
Calculate the square root of the number
I only had to choose one and chose the "Calculate the square root of
the number".
I have the following algorithm
Algorithm
1. Input: a real number X
sqrt(x) = x^0.5
2. If (X < 0) Then
Output: X “ cannot be negative.”
STOP
Edif
My flowchart is on the following web page:
http://www.popeyeray.com/lesson6.htm
I would appreciate someone to check if this is mostly correct.
I also am not sure about the error message and how to put it into my
flowchart.
Thank you
Ray