Results 1 to 2 of 2

Thread: what is the best way to plan pseudo code for web applications?

  1. #1

    Default what is the best way to plan pseudo code for web applications?

    Hi Guys,
    I've recently read about Computer Algorithms and Pseudo codes. The way of creating it for application software packages is different. But I want to plane pseudo code codes for making web application based on MVC and eCommerce. Please suggest me the best way and strategy to plan it.

  2. #2
    Join Date
    Apr 2020
    Posts
    704

    Default

    How to write a Pseudo-code?
    Arrange the sequence of tasks and write the pseudocode accordingly.
    Start with the statement of a pseudo code which establishes the main goal or the aim.
    Example:

    Advertisement


    This program will allow the user to check
    the number whether it's even or odd.
    The way the if-else, for, while loops are indented in a program, indent the statements likewise, as it helps to comprehend the decision control and execution mechanism. They also improve the readability to a great extent.
    Example:

    if "1"
    print response
    "I am case 1"

    if "2"
    print response
    "I am case 2"
    Use appropriate naming conventions. The human tendency follows the approach to follow what we see. If a programmer goes through a pseudo code, his approach will be the same as per it, so the naming must be simple and distinct.
    Use appropriate sentence casings, such as CamelCase for methods, upper case for constants and lower case for variables.
    Elaborate everything which is going to happen in the actual code. Don’t make the pseudo code abstract.
    Use standard programming structures such as ‘if-then’, ‘for’, ‘while’, ‘cases’ the way we use it in programming.
    Check whether all the sections of a pseudo code is complete, finite and clear to understand and comprehend.
    Don’t write the pseudo code in a complete programmatic manner. It is necessary to be simple to understand even for a layman or client, hence don’t incorporate too many technical terms. Dos and Don'ts in Pseudo Code Writing
    Example:
    Let’s have a look at this code

    Java

    // This program calculates the Lowest Common multiple
    // for excessively long input values

    import java.util.*;

    public class LowestCommonMultiple {

    private static long
    lcmNaive(long numberOne, long numberTwo)
    {

    long lowestCommonMultiple;

    lowestCommonMultiple
    = (numberOne * numberTwo)
    / greatestCommonDivisor(numberOne,
    numberTwo);

    return lowestCommonMultiple;
    }

    private static long
    greatestCommonDivisor(long numberOne, long numberTwo)
    {

    if (numberTwo == 0)
    return numberOne;

    return greatestCommonDivisor(numberTwo,
    numberOne % numberTwo);
    }
    public static void main(String args[])
    {

    Scanner scanner = new Scanner(System.in);
    System.out.println("Enter the inputs");
    long numberOne = scanner.nextInt();
    long numberTwo = scanner.nextInt();

    System.out.println(lcmNaive(numberOne, numberTwo));
    }
    }

Similar Threads

  1. php code or javascript code
    By randiv in forum Web Design Solutions
    Replies: 6
    Last Post: 02-20-2023, 08:49 AM
  2. promo code for snapdeal
    By amyjohncse in forum Business Tools
    Replies: 1
    Last Post: 08-22-2016, 12:51 PM
  3. Promotional Code:VPBCOM5%off for you
    By ivan1116 in forum Web Hosting and Related Offers Forum
    Replies: 0
    Last Post: 06-01-2016, 05:48 AM
  4. Reselling with free WHMCS billing applications
    By vinrar in forum Web Hosting Solutions
    Replies: 1
    Last Post: 10-01-2009, 09:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •