Alan's uncle bought him many items in Japan. He wants to calculate the value of each item in U.S. dollars. Which function will be useful to him?
Please be more specific. Functions that exist in where? What application is he going to use?
u type a function which takes an input value from user and in logic u multiply it with the value of a dollar in ur currency and return the value as display... u can do it in any language u like logic is same syntaxes may differ
when i was learning mathematics for first time ( i can't remember in which year), i think I had a question like this: "Your mother give you 5 dollar, you give 2 dollar to your brother, how many dollar you have left?" your question make me remember and make me laugh. Thanks for this. :) ------------------------------- Please share some more information about the problem, else we can't help you. -------------------------------- what is function: In mathematics, a function is a relation between a set of inputs and a set of permissible outputs with the property that each input is related to exactly one output. An example is the function that relates each real number x to its square x2. The output of a function f corresponding to an input x is denoted by f(x) (read "f of x"). In this example, if the input is −3, then the output is 9, and we may write f(−3) = 9. The input variable(s) are sometimes referred to as the argument(s) of the function. http://en.wikipedia.org/wiki/Function_%28mathematics%29 In computer science, a subroutine, also termed procedure, function, routine, method, or subprogram, is a part of source code within a larger computer program that performs a specific task and is relatively independent of the remaining code. As the name subprogram suggests, a subroutine behaves in much the same way as a computer program that is used as one step in a larger program or another subprogram. A subroutine is often coded so that it can be started (called) several times and/or from several places during one execution of the program, including from other subroutines, and then branch back (return) to the next instruction after the call once the subroutine's task is done. http://en.wikipedia.org/wiki/Function_%28computer_science%29
@brittybaby just write a program that converts the japanese currency to american currency and then add the total amount
Join our real-time social learning platform and learn together with your friends!