// Find the error in the following pseudocode. Module main ( ) Declare Real valu
ID: 3543080 • Letter: #
Question
// Find the error in the following pseudocode.
Module main ( )
Declare Real value, result
// Get a value from the user.
Display "Enter a value."
Input value
// Get 10 percent of the value.
Call tenPercent (value)
// Display 10 percent of the value.
Display "10 percent of ", value, "is", result
End Module
// The tenPercent function returns 10 percent
// of the argument passed to the function.
Funtion Real tenPercent (Real num)
Return num * 0.1
End Funtion
Explanation / Answer
Call tenpercent (value)
returns a number. You should assign the return value to a variable, like
return = call tenpercent (value)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.