Ask Question

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

+5
Answers (1)
  1. 16 April, 01: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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers