• 100% Satisfaction Guarantee
namstech, Electrical Engineer
Category: Programming
Satisfied Customers: 2126
Experience:  Expert in C, C++, Java, C#, Basic, MATLAB etc.
31303650
namstech is online now

# Write pseudocode for the following problem. (2)

### Resolved Question:

Write pseudocode for the following problem. (2)

Input : 2 numbers
Output : Display their Sum, Difference, Product, Reminder and quotient.

(The dividend is “the quantity to be divided: in 6 ÷ 2 = 3, the divisor is 2,
the dividend is 6, the quotient is 3 and the reminder is 0)
- for subtract
* for multiply
/ for divide
% for getting reminder

1. Prompt the user for 2 numbers
3. Now calculate sum, difference ... etc
4. Display each of them.
Submitted: 7 years ago.
Category: Programming
Expert:  namstech replied 7 years ago.

Welcome to JA expert services:

are you using C or C++ language for programming?
Customer: replied 7 years ago.

c lnguage for programming

Expert:  namstech replied 7 years ago.

Initialize first number to zero

Intialize second number to zero

Initialize sum, difference, product, remainder and qoutient variables to zero

Input the first number

input the second number

Add first and second number and store the result in sum

Subtract first number from the second and store the result in difference

Multiply first and second numbers and store the result in product

Calculate Modulus (using %) of first over second number and store in remainder

Divide first number by second and store the result in qoutient

Print sum

Print difference

Print product

Print remainder

Print quotient

------------------------

If you have any questions, contact me

Regards