Question

Suppose you want to change an existing program to have more of a modular architecture. The program contains a basic calculator program. Which of the following would be an appropriate attribute for the calculator class?(1 point)%0D%0AResponses%0D%0A%0D%0Asubtraction%0D%0Asubtraction%0D%0A%0D%0Aaddition%0D%0Aaddition%0D%0A%0D%0Anumber 1%0D%0Anumber 1%0D%0A%0D%0Acalculate

Answers

There are no human answers yet.
Answered by GPT 3.5
One appropriate attribute for the calculator class would be "calculate". This attribute would contain the logic to perform the calculations based on the user's input.

Related Questions