Develop a pseudocode or flowchart for all the following problems : 1. Write a program which will display “I AM GOOD” on the computer screen for 10x 2. Write a program which will display “I AM GREAT” on the computer screen for 100x 3. Write a program which will display “I AM SUPERMAN” on the computer screen for 1000x 4. Accept two integers from computer user and check whether they are equal or not.
Operations
In mathematics and computer science, an operation is an event that is carried out to satisfy a given task. Basic operations of a computer system are input, processing, output, storage, and control.
Basic Operators
An operator is a symbol that indicates an operation to be performed. We are familiar with operators in mathematics; operators used in computer programming are—in many ways—similar to mathematical operators.
Division Operator
We all learnt about division—and the division operator—in school. You probably know of both these symbols as representing division:
Modulus Operator
Modulus can be represented either as (mod or modulo) in computing operation. Modulus comes under arithmetic operations. Any number or variable which produces absolute value is modulus functionality. Magnitude of any function is totally changed by modulo operator as it changes even negative value to positive.
Operators
In the realm of programming, operators refer to the symbols that perform some function. They are tasked with instructing the compiler on the type of action that needs to be performed on the values passed as operands. Operators can be used in mathematical formulas and equations. In programming languages like Python, C, and Java, a variety of operators are defined.
Develop a pseudocode or flowchart for all the following problems :
1. Write a
2. Write a program which will display “I AM GREAT” on the computer screen for 100x
3. Write a program which will display “I AM SUPERMAN” on the computer screen for 1000x
4. Accept two integers from computer user and check whether they are equal or not.
5. Write a program to check whether a given number is even or odd.
6. Write a program to check whether a given number is positive or negative
7. Write a program to read the value of an integer m and display the value of n is 1 when m is larger than 0, 0
when m is 0 and -1 when m is less than 0
8. Write a program which accept the user’s height in cm then display :
a. You are so tall → if the height is more than 180cm
b. You are not that tall → if the height is between 100 – 179cm
c. You are short ha ha ha → if the height is less than 100cm
9. Write a program to read 10 numbers from keyboard and find their sum and average
10. Ask the user to enter a number and display a pattern based on the value of the number.
Eg : 3
x x x
x x x
x x x
11. Ask the user to enter a number and display a pattern based on the value of the number.
Eg : 5
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
Step by step
Solved in 4 steps with 4 images