Ask Question
31 July, 10:20

Write a pseudocode statement thatsubtracts the vaiable downPayment from the variable total andassigns the reult to the variable due.

+5
Answers (1)
  1. 31 July, 12:22
    0
    initialize the variables total and downPayment.

    int due = total - downPayment;

    Explanation:

    In the programming, before use the variable in the code you have to declare the variable.

    then, there are the mathematical operators in the programming to perform the mathematical calculation.

    for perform addition, the operator is '+'.

    for performing multiplication, the operator is '*'.

    similarly, for performing subtraction, the operator is '-'.

    and there is one more assignment operator in programming which is used to assign the value to the variables. The assignment operator is '='.

    so, int due = total - downPayment;

    in the above, the program subtracts the downPayment value from the total value and assign to the variable due which is an integer type.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a pseudocode statement thatsubtracts the vaiable downPayment from the variable total andassigns the reult to the variable due. ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers