Posts

Showing posts from June, 2018

To accept marks of five subject and display pass or fail ( if pass display Percentage too).

    Answer: - Step 1: Start Step 2: Accept mark of Nepali and store in Nepali Step 3: Accept mark of Computer and store in Computer Step 4: Accept mark of Social and store in Social Step 5: Accept mark of Math’s and store in Maths Step 6: Accept mark of Science and store in Science Step 7: Check Is Nepali greater than equal to 40 AND Computer greater than equal to 40 AND Social greater than equal to 40 AND Maths greater than equal to 40 AND Science greater than equal to 40 If Yes: Calculate Pass percentage and store in PP Display “You are Pass and Your Percentage “PP If No: Display “Your FAILED” Step 8: End

To accept marks of five subject and display pass or fail.

Answer: - Step 1: Start Step 2: Accept mark of Nepali and store in Nepali Step 3: Accept mark of Computer and store in Computer Step 4: Accept mark of Social and store in Social Step 5: Accept mark of Math’s and store in Maths Step 6: Accept mark of Science and store in Science Step 7: Check Is Nepali greater than equal to 40 AND Computer greater than equal to 40 AND Social greater than equal to 40 AND Maths greater than equal to 40 AND Science greater than equal to 40 If Yes: Display “Your Pass” If No: Display “Your FAILED” Step 8: End

To accept marks of five subject and display percentage.

    Answer: - Step 1: Start Step 2: Accept mark of Nepali and store in Nepali Step 3: Accept mark of Computer and store in Computer Step 4: Accept mark of Social and store in Social Step 5: Accept mark of Math’s and store in Maths Step 6: Accept mark of Science and store in Science Step 7: Calculate average marks obtain and store in AMO Step 8: Display “Average Marks Obtain is” AMO Step 9: End

To accept marks of five subject and display average marks obtain.

Answer: - Step 1: Start Step 2: Accept mark of Nepali and store in Nepali Step 3: Accept mark of Computer and store in Computer Step 4: Accept mark of Social and store in Social Step 5: Accept mark of Math’s and store in Maths Step 6: Accept mark of Science and store in Science Step 7: Calculate average marks obtain and store in AMO Step 8: Display “Average Marks Obtain is” AMO Step 9: End

To accept marks of five subject and display total marks obtain.

Answer: - Step 1: Start Step 2: Accept mark of Nepali and store in Nepali Step 3: Accept mark of Computer and store in Computer Step 4: Accept mark of Social and store in Social Step 5: Accept mark of Math’s and store in Maths Step 6: Accept mark of Science and store in Science Step 7: Calculate total obtain marks and store in TOM Step 8: Display “total Obtain Marks is” TOM Step 9: End

To accept cost price and selling price and display profit or loss amount with percentage too.

Answer: - Step 1: Start Step 2: Accept cost price and store in CP Step 3: Accept selling price and store in SP Step 4: CP greater than SP             If Yes: Calculate profit and store in Profit                         Calculate profit percentage and store in ProfitPer                         Display “Profit “Profit                         Display “Profit Percentage “ProfitPer             If No: Calculate Loss and store in Loss               ...

To accept cost price and selling price and display only profit or loss.

Answer: - Step 1: Start Step 2: Accept cost price and store in CP Step 3: Accept selling price and store in SP Step 4: SP greater than CP             If Yes: Display “Profit”             If No: Display “Loss” Step 5: End

To accept cost price as 10000 and selling price as 90000 and display loss.

Answer: - Step 1: Start Step 2: Accept cost price as 10000 and store in CP Step 3: Accept selling price as 11900 and store in SP Step 4: Calculate Loss and store in Loss Step 5: Display “Your Loss is “Loss Step 6: End

To accept three numbers and display the greater one.

Answer: - Step 1: Start Step 2: Accept first number and store in A Step 3: Accept second number and store in B Step 4: Accept Third number and store in C Step 5: Check Is A greater than B AND A greater than C             If Yes: Display “Greater Number is” A             If No: Goto step 6 Step 6: check is B greater than A AND B greater then C If Yes: Display “Greater Number is” B             If No: Display “Greater Number is” C Step 7: End

To accept two number and display the greater one.

Answer: - Step 1: Start Step 2: Accept first number and store in A Step 3: Accept second number and store in B Step 4: Check Is A greater than B             If Yes: Display “Greater Number is” A             If No: Display “Greater Number is” B Step 5: End

To accept cost price as 10000 and selling price as 11900 and display profit.

Answer: - Step 1: Start Step 2: Accept cost price as 10000 and store in CP Step 3: Accept selling price as 11900 and store in SP Step 4: Calculate profit and store in Profit. Step 5: Display “Your Profit is “Profit Step 6: End

To accept user with pounds and display in kg

. Answer: - Step 1: Start Step 2: Accept unit on pound and story in Unit Step 3: Accept the Pound to Convert and store Pound Step 4: calculate Pound into Kg and store in Kg Step 5: Display “Your Pound into Kg is” Kg Step 6: End

To accept user with kg and display in in to grams.

Answer: - Step 1: Start Step 2: Accept unit on kg and story in Unit Step 3: Accept the Kg to Convert and store Kg Step 4: calculate Kg into Gram and store in Gram Step 5: Display “Your Kg into Gram is” Gram Step 6: End

To accept user with minute and display minute in seconds.

Answer: - Step 1: Start Step 2: Accept unit on minute and story in UnitMin Step 3: Accept the Minutes to Convert and store Minute Step 4: calculate Minute into Seconds and store in Second Step 5: Display “Your Minute to Second is” Second. Step 6: End

To convert Indian currency into Nepalis currency.

Answer: - Step 1: Start Step 2: Accept Indian unit currency and story in UnitIndian Step 3: Accept the Indian currency to convert and store in IndianConvert Step 4: calculate Indian currency into Nepalis currency and store in ICtoNRS Step 5: Display “Your Us currency to Nepalis currency is” ICtoNRS Step 6: End

To convert US currency into Nepalis currency.

Answer: - Step 1: Start Step 2: Accept US unit currency and story in UnitUS Step 3: Accept the US currency to convert and store in USConvert Step 4: calculate US currency into Nepalis currency and store in USDtoNRS Step 5: Display “Your Us currency to Nepalis currency is” USDtoNRS Step 6: End

To accept work, time and display power.

Answer: - Step 1: Start Step 2: Accept Work and store in W Step 3: Accept Time and store in T Step 4: calculate Power and store in Power Step 5: Display “Your Power is” Power Step 6: End

To accept distance, time and display speed.

Answer: - Step 1: Start Step 2: Accept Distance and store in D Step 3: Accept Time and store in T Step 4: calculate Speed and store in S Step 5: Display “Your Speed is” S Step 6: End

To accept final velocity, initial velocity, time and display acceleration

Answer: - Step 1: Start Step 2: Accept final velocity and store in V Step 3: Accept Initial Velocity and store in I Step 4: Accept Time and store in T Step 5: calculate Acceleration and store in Acc Step 6: Display “Your Acceleration is” Acc Step 7: End

To accept length of cube and display perimeter, total surface area and volume of cube.

Answer: - Step 1: Start Step 2: accept length and store in L Step 3: Calculate perimeter of cube and store in Perimeter Step 4: Display “Your perimeter of cube is” Perimeter Step 5: Calculate total surface area of cube and store in Area Step 6: Display “Your total surface area of cube is” Area Step 7: Calculate Volume of cube and store in Volume Step 8: Display “Your Volume of cube is” Volume Step 9: End

To accept length of cube and display volume of cube.

Answer: - Step 1: Start Step 2: accept length and store in L Step 3: Calculate Volume of cube and store in Volume Step 4: Display “Your Volume of cube is” Volume Step 5: End

To accept length of cube and display total surface area of cube.

Answer: - Step 1: Start Step 2: accept length and store in L Step 3: Calculate total surface area of cube and store in Area Step 4: Display “Your total surface area of cube is” Area Step 5: End

To accept length of cube and display perimeter of cube.

Answer: - Step 1: Start Step 2: accept length and store in L Step 3: Calculate perimeter of cube and store in Perimeter Step 4: Display “Your perimeter of cube is” Perimeter Step 5: End

To accept length and breath of rectangle and display perimeter and are of rectangle.

Answer: - Step 1: Start Step 2: accept length and store in L Step 3: accept breadth and sore in B Step 4: Calculate perimeter of rectangle and store in Perimeter Step 5: Display “Your perimeter of rectangle is” Perimeter Step 6: Calculate Area of rectangle and store in Area Step 7: Display “Your Area of rectangle is” Area Step 8: End

To accept length and breadth of rectangle and display area of rectangle.

Answer: - Step 1: Start Step 2: accept length and store in L Step 3: accept breadth and sore in B Step 4: Calculate Area of rectangle and store in Area Step 5: Display “Your Area of rectangle is” Area Step 6: End

To accept length and breadth of rectangle and display perimeter of rectangle.

Answer: - Step 1: Start Step 2: accept length and store in L Step 3: accept breadth and sore in B Step 4: Calculate perimeter of rectangle and store in Perimeter Step 5: Display “Your perimeter of rectangle is” Perimeter Step 6: End

To accept principle, time, rate and display simple interest

Answer: - Step 1: Start Step 2: Accept principle and store in P Step 3: Accept time and store in T Step 4: Accept Rate and store in R Step 5: Calculate Simple Interest of it and store in SI Step 6: Display “Your Simple Interest is” SI Step 7: End

To accept a number and display cube of it.

Answer: - Step 1: Start Step 2: Accept a number and store in Number Step 3: Calculate Cube of it and store in Cube Step 4: Display “Your Cube is” Cube Step 5: End

To accept a number and display cube and square of it.

Answer: - Step 1: Start Step 2: Accept a number and store in Number Step 3: calculate square of it and store in Square Step 4: Display “Your square is” Square Step 5: calculate Cube of it and store in Cube Step 6: Display “Your Cube is” Cube Step 7: End

To accept a number and display square of it.

Answer: - Step 1: Start Step 2: Accept a number and store in Number Step 3: Calculate square of it and store in Square Step 4: Display “Your square is” Square Step 5: End

To accept two numbers and display their sum, product, difference, division.

Answer:- Step 1: Start Step 2: Accept first number and store in p Step 3: Accept second number and store in D Step 4: Calculate Sum of two numbers and store in Sum step 5: Display "Your Sum of two numbers is " Sum Step 4: Calculate Product of two numbers and store in Product step 5: Display "Your Product of two numbers is " Product Step 4: calculate Difference of two numbers and store in Difference step 5: Display "Your Difference of two numbers is "  Difference Step 4: Calculate Division of two numbers and store in Division step 5: Display "Your Division of two numbers is " Division step 6: End

To accept two numbers and display their division.

Answer:- Step 1: Start Step 2: Accept first number and store in p Step 3: Accept second number and store in D Step 4: Calculate division of two numbers and store in PD step 5: Display "Your division of two numbers is " PD step 6: End

To accept two numbers and display their difference.

Answer:- Step 1: Start Step 2: Accept first number and store in p Step 3: Accept second number and store in D Step 4: Calculate difference of two numbers and store in PD step 5: Display "Your difference of two numbers is " PD step 6: End

To accept two numbers and display their product.

Answer:- Step 1: Start Step 2: Accept first number and store in p Step 3: Accept second number and store in D Step 4: Calculate product of two numbers and store in PD step 5: Display "Your product of two numbers is " PD step 6: End

To accept two numbers and display their sum.

Answer;- Step 1: Start Step 2: Accept first number and store in p Step 3: Accept second number and store in D Step 4: Calculate sum of two numbers and store in PD step 5: Display "Your sum of two numbers is " PD step 6: End

Algorithm

                   An algorithm is procedure consisting of a finite set of unambiguous rules (instructions)  which specify a finite sequence of operations that provides the solution to a problem, or  to a specific class of problems for any allowable set of input quantities (if there are  inputs). In other word, an algorithm is a step-by-step procedure to solve a given  problem                  An algorithm is a sequence of steps required to solve a problem. It ia a list of well-defined instructions to solve a problem.  An algorithm ends after a fixed number of steps. Each step in an algorithm clearly specifies the actions to be performed. The steps in an algorithm specifies basic operations. This operations can be include calculations input/output operations and comparisons An algorithm accepts the input data in a defined format, before it can be processed...