Ask Question
17 April, 11:54

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

+5
Answers (1)
  1. 17 April, 15:25
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers