How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask namstech Your Own Question
namstech, Electrical Engineer
Category: Programming
Satisfied Customers: 2126
Experience:  Expert in C, C++, Java, C#, Basic, MATLAB etc.
Type Your Programming Question Here...
namstech is online now
A new question is answered every 9 seconds

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 add
- for subtract
* for multiply
/ for divide
% for getting reminder

1. Prompt the user for 2 numbers
2. Read into 2 variables
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


namstech and other Programming Specialists are ready to help you

Related Programming Questions