Computer Science Canada

i need help with a math formula and translating it to turing lanuage

Author:  the_silencer02 [ Sun Jun 17, 2018 10:58 pm ]
Post subject:  i need help with a math formula and translating it to turing lanuage

Hi I'm making a Final Grade Calculator Program for an assignment in my computer tech class I am fairly new to turing and need help inputting a math formula into my code the formula is
Desired Final mark - Current mark × (100% - Final exam worth) / Final exam worth I need help turning the formula into a Turing function. any help would be highly appreciated.

Author:  Insectoid [ Mon Jun 18, 2018 6:34 am ]
Post subject:  RE:i need help with a math formula and translating it to turing lanuage

All of the words there can be made into variables. 'Desired final mark' is a variable, 'current mark' is a variable, etc. Once you turn all those into variables, you literally just type in the forms as is, no translating required.

Author:  Hugetanks [ Mon Jun 18, 2018 6:44 am ]
Post subject:  Re: i need help with a math formula and translating it to turing lanuage

Basically it is what insectoid said. You need to ask the user for the value of each of those variables, and then type it out exactly as you had done so.


: