answersLogoWhite

0

1. Accept the 2 numbers 2. Add the 2 numbers
3. Compare answer with 5
4. If answer is greater than 5 subtract with 5 else give a error message.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Develop an algorithm to display all prime numbers from 2 to 100 Give both the pseudocode version and the flowchart version Convert your pseudocode into a Java program?

Develop an algorithm to display all prime numbers from 2 to 100. Give both the pseudocode version and the flowchart version. Convert your pseudocode into a Java program.


What is an English-like statement used to describe the logic of a program?

Pseudocode.


What is the flowchart and pseudocode for a program that accept and displays the factorial of a number?

A flowchart for a program that accepts and displays the factorial of a number would include the following steps: Start, Input the number, Initialize a variable for the factorial, Use a loop to calculate the factorial by multiplying the variable by each integer up to the number, Output the result, and End. Pseudocode for the same program would look like this: START INPUT number factorial = 1 FOR i FROM 1 TO number DO factorial = factorial * i END FOR OUTPUT factorial END


What has the author T E Bailey written?

T. E. Bailey has written: 'Program design with pseudocode' -- subject(s): Programming, Electronic digital computers, Electronic digitalcomputer, Pseudocode (Computer program language)


How do you write a pseudocode program for finding out x to the power of y?

X**y


Pseudocode could be logically incorrect if not properly indented?

The indentation doesn't affect the "logic" of the program, however it would make it make harder to read and the purpose of pseudocode is to be read.


Could Pseudocode could be logically incorrect if not properly indented.?

The indentation doesn't affect the "logic" of the program, however it would make it make harder to read and the purpose of pseudocode is to be read.


Which microprocessor accepts the program written for 8086 without any changes?

Which microprocessor accepts the program written for 8086 without any changes?


Display a pseudocode for a calculator program?

firstly try yourself then ask others or browse internet websites etc


Information about Program Design and PseudoCode?

Program design involves outlining the structure and components of a software application before actual coding begins, ensuring that the program meets user requirements and functions efficiently. Pseudocode is a high-level description of the program's logic, using plain language and structured formatting to represent algorithms without adhering to the syntax of specific programming languages. This approach helps programmers conceptualize the solution and identify potential issues early in the development process. Ultimately, both program design and pseudocode serve as crucial tools for organizing thoughts and streamlining the coding phase.


How do you write the semicolon symbol in a pseudocode logic program delaing with classes?

Any of these: PRINT semicolon EMIT ; WRITE ";" etc.


What do you call the statement in pseudocode?

In pseudocode, a statement is typically referred to as an "instruction" or "command." These instructions represent individual operations or actions that the algorithm will perform, such as variable assignments, condition checks, or loops. Pseudocode is designed to be human-readable, focusing on the logic of the algorithm rather than specific syntax, making it easier to understand the flow of the program.