Showing posts with the label Introduction to Problem Solving

DISPLAY Type in a number or zero to stop

Q. Given the following pseudo code:  Use variable: number of type real DISPLAY …

Display input category Accept category

Q. Given the following pseudo code:  Use variables: category of type character …

Use variables: mark of type integer

Q. Given the following pseudo code: Use variables: mark of type integer If mark…

Use variables: choice, of the type character

Q. Given the following pseudo code: Use variables: choice, of the type characte…

Draw a flow chart for same and dry run given pseudocode if it is working

Q. Given the following pseudo code: Use variables sum, product, number1, number…

To find factorial of a given number.

Q. To find factorial of a given number. Answer :- Algorithm :- 1. Start 2. Inpu…

To find sum of n given numbers.

Q. To find sum of n given numbers. Answer :- Algorithm :- 1. Start 2. Sum = 0 3…

To print to print cubes of first n numbers.

Q. To print to print cubes of first n numbers. Answer :- Algorithm:- 1. Start 2…

To print the cube of a number.

Q. To print the cube of a number. Answer :- Algorithm:- 1. Start 2. Input a num…

To print squares of first n numbers.

Q. To print squares of first n numbers. Answer :- Algorithm:- 1. Start 2. Input…

To accept numbers till the user enters and then find their average.

Q. To accept numbers till the user enters and then find their average. Answer :…

To accept 5 numbers and find their average.

Q. To accept 5 numbers and find their average. Answer :- Algorithm :- 1. Start …

To print square of a number.

Q. To print square of a number. Answer :- Algorithm :- 1. Start 2. Input a numb…

To print n odd numbers.

Q. To print n odd numbers. Answer :- Algorithm :- 1. Start 2. Input n 3. For I …

To print all natural numbers up to n.

Q. To print all natural numbers up to n. Answer :- Algorithm :- 1. Start 2. Inp…

To categorise a person as either child (13), teenager (13 but 20) or adult (20), based specified.

Q. To categorise a person as either child (<13), teenager (> 13 but <2…

To check if a number is an odd or even number.

Q. To check if a number is an odd or even number. Answer :- Algorithm :- 1. Sta…

To check if a number is a positive or negative number.

Q. To check if a number is a positive or negative number. Answer :- Algorithm :…

To check whether a year is a leap year or not.

Q. To check whether a year is a leap year or not. Answer :- Algorithm :- 1. Sta…

To calculate the simple interest.

Q. To calculate the simple interest. Answer :- Algorithm :- 1. Start 2. Input p…

Load More That is All