Variables, output of program
Not what you're looking for?
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
Return
Calculations module
Declare NewNum as interger
NewNum = 10 * Num
Return
Greetings module
Write "Have a nice day!"
Return
Output module
Write Name, NewNum
Return
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.
2000
3. When this program runs, what will be the last statement executed?
NewNum
Purchase this Solution
Solution Summary
Variables and the output of program are considered. The character variables are declared for the input modules.
Solution Preview
1. There are three varibables: Declare Num as Interger
Declare NewNum as Interger
Declare LastName as ...
Purchase this Solution
Free BrainMass Quizzes
Basic Networking Questions
This quiz consists of some basic networking questions.
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.
C++ Operators
This quiz tests a student's knowledge about C++ operators.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
Inserting and deleting in a linked list
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.