Explore BrainMass

Explore BrainMass

    Variables, output of program

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

    Main module
    Call Input module
    Call Calculations module
    Call Output Module
    Call Greeting module
    End Program

    Input module
    Declare LastName as a character variable
    Declare Num as interger
    Write "Enter your last name"
    Input LastName
    Write "Enter the course number"
    Input Num

    Calculations module
    Declare NewNum as interger
    NewNum = 10 * Num

    Greetings module
    Write "Have a nice day!"

    Output module
    Write Name, NewNum

    1. List the varibables: Declare Num as Interger
    Declare NewNum as Interger

    2. Show the output of the screen when the program executes with a value of 200.

    3. When this program runs, what will be the last statement executed?

    © BrainMass Inc. brainmass.com October 9, 2019, 5:22 pm ad1c9bdddf

    Solution Preview

    1. There are three varibables: Declare Num as Interger
    Declare NewNum as Interger
    Declare LastName as ...

    Solution Summary

    Variables and the output of program are considered. The character variables are declared for the input modules.