0

Four basic mathematical operations; creating answer with explanation.

I want to add if statement on my code, so the question is this. As for division, the first number is dividend, and the second number is divisor? How about addition, multiplication, And subtraction? I thought that for subtraction, the 1st number is subtrahend and the second number is subtractor, but google says they are same? Help, I'm just curious, advance thanks to brothers and sisters. :) 😄 https://code.sololearn.com/cd9amX4QM8lS/?ref=app

26th Sep 2020, 2:59 AM
Jonathan P. Jundarino
Jonathan P. Jundarino - avatar
11 ответов
+ 5
Jonathan Jundarino To answer your question, "operand" would be the general name for referring to the values placed on the left and right hand sides of arithmetic operators like +, -, *, /, and %. The names could be more specific as follows: ------ addition (+) --- augend + addend = sum "addend" can be used for both operands as well. ------ subtraction (-) --- minuend - subtrahend = difference ------ multiplication (*) --- multiplicand * multiplier = product "factor" can be used for both operands as well. ------ division (/) --- dividend / divisor = quotient ------ modulos (%) --- dividend % divisor = remainder This should satisfy what you're looking for.
26th Sep 2020, 4:35 AM
David Carroll
David Carroll - avatar
+ 2
Jonathan Jundarino please provide a coding related issue not what appears to be math homework. Please follow the forum guidelines. Thanks and happy coding. https://www.sololearn.com/discuss/1316935/?ref=app
26th Sep 2020, 3:15 AM
BroFar
BroFar - avatar
+ 2
26th Sep 2020, 3:24 AM
BroFar
BroFar - avatar
+ 2
Jonathan Jundarino It appears your question is about terminology ...not coding. It is not really mathematics either... again... terminology
26th Sep 2020, 3:40 AM
BroFar
BroFar - avatar
+ 2
I just want to say logic is important. I don't know if you already created a system that can help solving ploblem. That's what I'm aiming for. Programming is for that purpose, to help solving problem. If you don't know the answer also, please stop replying. Also, please remove the like you've done in your comment, so others might answer that can gave me satisfaction.
26th Sep 2020, 3:51 AM
Jonathan P. Jundarino
Jonathan P. Jundarino - avatar
+ 2
BroFar I think the context of the question (based on the follow up clarifications) is meant to help determine naming for variables or output labels or comments to be used in the code. In this case, the desire might be to use meaningful names that reflect the operands of a given operation rather than use generic variable names like x and y. If that is the case, then the question seems to be fitting. NOTE: I'm not saying that my opinion overrules yours. I'm just sharing my opinion. 😉👌
26th Sep 2020, 4:01 AM
David Carroll
David Carroll - avatar
+ 2
Jonathan Jundarino It would help if you could update your question text above to establish a clearer coding context. Otherwise, the feedback from BroFar would apply here as it's meant to keep the content in Q&A aligned with programming related questions.
26th Sep 2020, 4:11 AM
David Carroll
David Carroll - avatar
+ 1
Sorry, I'm not here to debate, but it's programming related question. How can you say that it's not, logic is part of programming. How can you code without logic? Understandaning math is also part of programming.
26th Sep 2020, 3:31 AM
Jonathan P. Jundarino
Jonathan P. Jundarino - avatar
+ 1
David Carroll Okay, I really thanks for your comment. I just want to sorry to BroFar, we dabate and nothing good cames from that. Thanks also for your comment Brofar, this is my first time asking here. My fault.
26th Sep 2020, 4:19 AM
Jonathan P. Jundarino
Jonathan P. Jundarino - avatar
+ 1
Thank you so much for that, I've learned again today. Google doesn't give that answer.
26th Sep 2020, 4:39 AM
Jonathan P. Jundarino
Jonathan P. Jundarino - avatar
0
Sorry, it's not a math homework. I just want to make a code that explain the answer from 4 basic mathematical operations. Code is not the problem, but the logic. Thanks for your comment.
26th Sep 2020, 3:19 AM
Jonathan P. Jundarino
Jonathan P. Jundarino - avatar