Explore BrainMass
Share

Explore BrainMass

    Three Simple Pseudocode Examples

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Write a pseudocode statement that generates a random number in the range of 1 through 100 and assigns it to a variable named rand.

    Design a function named timesTen that accepts an Integer argument. When the function is called, it should return the value of its argument multiplied times 10.

    Design a function named getFirstName that asks the user to enter his or her first name, and returns it.

    © BrainMass Inc. brainmass.com April 3, 2020, 6:27 pm ad1c9bdddf
    https://brainmass.com/computer-science/pseudocode/three-simple-pseudocode-examples-210095

    Solution Preview

    Write a pseudocode statement that generates a random number in the range of 1 through 100 and assigns it to a variable named rand.

    Different programming languages have different methods for getting a random number. ...

    Solution Summary

    This solution provides three simple pseudocode examples.

    $2.19

    ADVERTISEMENT