Está en la página 1de 5

ALGORITHM

Step 1: Display the welcome screen.

Step 2: Ask the user to enter his/her choice.

a)process their choice.

Step 3: If choice =r/R.

a)Display sub menu.

b)if choice =l/L

(i)Ask in which unit they want to enter

(ii)Ask in which unit they want to enter

(iii)Ask to enter the value.

(iv)Display output by processing the inputted data.

(v)Go to step 6.

c) if choice =m/M

(i)Ask in which unit they want to enter

(ii)Ask in which unit they want to enter

(iii)Ask to enter the value.

(iv)Display output by processing the inputted data.

(v)Go to step 6.

d) if choice =t/T
(i)Ask in which unit they want to enter

(ii)Ask in which unit they want to enter

(iii)Ask to enter the value.

(iv)Display output by processing the inputted data.

(v)Go to step 6.

e)if choice =r/R

(i)Ask in which unit they want to enter

(ii)Ask in which unit they want to enter

(iii)Ask to enter the value.

(iv)Display output by processing the inputted data.

(v)Go to step 6.

Step-4: If choice =c/C

a)Display submenu

b)If choice =a/A

(i)Enter 2 Nos.
(ii)Display out put after processing
(iii)Go to step 6.

c)If choice =s/S.

(i)Enter 2 Nos
(ii)Display out put after processing
(iii)Go to step 6.
d)if choice =m/M

(i)Enter 2 Nos.
(ii)Display out put after processing
(iii)Go to step 6.

e)if choice=d/D

i) Enter dividend & divisor.

ii)Process data & display output.

iii) Go to step 6.

f) if choice = q/Q.

i) Enter the value

ii)Process data & display output.

iii)Go to step 6.

g)if choice =e/E

i) Enter the base & power

ii)Process data & display output.

iii) Go to step 6.

h) if choice =p/P

i) Enter the limit

ii)Enter the datas.

iii)Enter the total.

iv)Process the datas & display output.


v) Go to step 6.

Step-5: If choice = a/A

a)Display submenu

b)if choice = s/S

i)Enter length.

ii)Process data inputted

iii)Give output

iv) Go to step 6.

c) if choice =t/T

i)Enter 3 sides

ii)Process data inputted

iii)Give output

iv)Go to step 6.

d)if choice=c/C

i)Enter radius

ii)Process data inputted.

iii)Give output

iv)Go to step6.

e)if choice =r/R

i)Enter length & breadth.


ii)Process data inputted.

iii) Give output.

iv)Go to step 6.

Step -6: Do you want to calculate more ?(Y/N)

a) If choice=Y/y
i)go to step 1
b) If choice=n/N

También podría gustarte