Update: instead of not taking (2) two input arguments, as the 2nd result
allows user to input another string, to be assigned for InputString, when the latter is null
E.g. handleNullOrMissing(.., result)
- handleNull(stringInput, result): added
result
, as a new input argument to be called, right afterisNull
,
TODO: recheck function (to check on the new changes)
- checkIsNumber(result): to check variable value is a floating number
- handleMissing(stringInput, result): adds
result
, as a 2nd input argument; ifstringInput
is null
handleNullOrMissing()
minor changes in the control-flow statement
handleNullOrMissing(stringInput)
:
function is debugged, updating changes that reders it functional
promptName()
: prompts user to enter a string name, for a variablepromptValue()
: prompts user to enter a decimal value, for a variable
-
isNull(_string)
: checked, changes been applied -
handleNull(_string)
: inner logic been checked & functionality has been changed
-
handleNullName
: checks & handles user-input, for the variable Name -
handleNullValue
: checks, handles user-input, for the variable value -
setVariable
: covers the whole process of prompt, read, nullability check of a variable , while doing same thing for its respective value, and finally Assigning the name, for that value
isNullOrMissing
: Takes (2) Two Bool
condition functions (isNull()
, isMissing()
)
so that one can evaluate each Bool
flag seperately
isNullOrMissing
-
debugged the single input argument function
-
debugged the (2) Two input argument function, as well
-
handleNullName
: been checked, now compiles -
handleNullValue
: been check & compiles, as well -
main.jl
compiles
handleNull
has an Unclear context (2) functions been offered, in return:handleNullName
handleNullValue
both of which useshandleNull
, however, the handling is done , based on the expected typhandleNullName
is expected to returnString
whilehandleNullValue
expected to parse input string of default value0.00
to aFloat64
then returns the corresponding value
getCurrentLiabilities()
: prompts user to input the string equivalents of variable name, & a variable's float, both inputs are transfromed into a single variable the process is repeated for each variable item, contained incurrentLiabilities
nonCurrentAssets
(2) function variations:getnonCurrentAssets
,calcNonCurrentAssets
Altman's scope does not cover non-Current Assets
(are Assets lasting 3 to 5 years)
as it is not of interest ( whereas currentAssets
is )
because solvency is concerned with the current year ( earnings of a firm)
-
currenttLiabilities to
getCurrentLiabilities()`: function been renamed -
calcAssets()
tocalcTotalAssets()
: function been renamed -
createVariable(_string)
tosetVariable(_string)
-
getTotalLiabilities(): to be input, prompted by the user
currentassets
: besides the function name being a noun (& not a verb), it is also a duplicate for an already existing function:getCurrentAssets()
getCurrentAssets()
calcCurrentAssets()
getCurrentLiabilities()
calcCurrentLiabilities()
handleNull()
isNull(_string)
: Updated condition to allow eithernothing
or""
asnull
assignVariableToValue
string_as_varname_macro
: renamed tomacro_string_as_varname
assignVariableToValue
: usesmacro_string_as_varname
#10-18-2022
warn()
: throws an error, and warns the user about the faulty input . what makes it useful is that it doesn't unexpectedly exits the REPL. the User stays in the REPL, which lets the user easily re-invoke the function, with possibly a valid input, afterwards
handleResponse()
: a second input argument has been added , to pass & handle the decimal var
value
handleResponse()
added a third input argumentkernel
to pass in the corresponding function, eitherpromptVarName
or even possiblypromptValue
#10-20-2022
-
isNull
: condition logic been updated ( checked, indemo2
) -
trimSpaces
: corrected condition (recheck is required) -
main.jl
: runs without Error
#10-25-2022
setVariable
: to replace the current variable Creation function it thas two (2) function variations :
setVariable(_string)
: creates a variable from_string
, prompts user to input the variable's decimal valuesetVariable(_string, varValue)
: creates a variable from_string
, assigns the decimavarValue
to variable_string
-
Mul(_vector)
: corrected iteration condition -
z_handling
: renamed into a more meaningfully Suitable oneevaluateZ
checkInputIsValidOrRewind