Question
Cobol
LAMMING ASSIGNMENTS are (a) files, (b) records, in For Assements c which elements in the specified programs are a ords, (c) f
0 0
Add a comment Improve this question Transcribed image text
Answer #1

In the given COBOL figure 1.14,

a) Files - In the given programme, there is only one file and the name of the file is SALES-FILE.

Files are used to handle large volume of data in the form of database objects. Files are identified by files names and they are user defined names.

b) Records - Records element in the above programme is SALE-REC.

Files are divided into records and they contain set of information. Records are also identified by record names and they are user defined names.

c) Fields - Fields elements in the above figure are NAME-IN, AMOUNT-OF-SALES-IN, NAME-OUT, AMT-COMMISSION-OUT

Records are further divided into fields. Fields are also identified by user defined names.

d) Numeric literals - 15, 20 and 72 are the numeric literals in the above program.

In COBOL, literals are constant data items. It consist of data. It cannot be referred by a name. Numeric literals can be formed with the help of digits only.

e) Non numeric literals - "YES" and "NO" are the 2 non numeric literals.

Non numeric literals are enclosed in between " ".

f) Figurative constants - There is no predefined constants in the above program.

In COBOL, figurative constants are predefined constants.

Add a comment
Know the answer?
Add Answer to:
Cobol LAMMING ASSIGNMENTS are (a) files, (b) records, in For Assements c which elements in the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Cobolt QUESTION 12 4 points Save Answe If you do the following COBOL commands to the fields X1 and X2 Inspect X1 Replacing Leading 'B'By "X Inspect X2 Replacing First'A' By...

    Cobolt QUESTION 12 4 points Save Answe If you do the following COBOL commands to the fields X1 and X2 Inspect X1 Replacing Leading 'B'By "X Inspect X2 Replacing First'A' By Z Field Before After X1 BBBZZA XXXZZA X2 RRAST RRZST ○True O False QUESTION 13 4 points Save Answer Assume these condition names defined for Age field 05 Age Pic 99 88 Minor Values 0 Thru 16 88 Adult Values 17 Thru 64 88 ELDERLY VALUES 65 thru 150...

  • The code should work exactly the same as given example. The files: ---------------------------------------------------...

    The code should work exactly the same as given example. The files: ---------------------------------------------------------------------------------------------------- -------- FILE NAME ------- album0 ---------- FILE ------- <album> 323 Licensed to Ill Beastie Boys 25.0 </album> <album> 70 Enter the Wu_Tang: 36 Cham... Wu Tang Clan 25.99 </album> turning to Alice, she went on, `What's your name, child?' and there stood the Queen in front of them, with her arms folded, <album> 115 Daydream Nation Sonic Youth 5.0 </album> <album> 414 52nd Street Billy Joel 25.75...

  • This program is intended for C++ A special type of situation, called a controlled break, can...

    This program is intended for C++ A special type of situation, called a controlled break, can occur when processing records of data must temporarily pause because a key value has changed. For example, a control break might occur in a report that contains subtotals for groupings of records. This program requires such a procedure.   Sales people at a local car dealership are paid by commission. For every car sale, a sales person earns 30% of the base price or $100,...

  • The file containing the JAVA files, pseudocode file and doc file that have written for this...

    The file containing the JAVA files, pseudocode file and doc file that have written for this lab. Preamble The file releasedates.txt contains a list of video games and their release dates. Each line of the file contains the release date, a tab character, and then the name. The list is currently totally unsorted. The object of today's lab is to write a series of methods that allow us to perform the following tasks: read contents from a file and store...

  • In C++, You are given a file of customer data with records in the following format...

    In C++, You are given a file of customer data with records in the following format : account number, last name, first name, middle name. Write a program to convert the input data and display it to the monitor in the following format : Accout Name     Logon ID Initial Pswd 21-88282712-B Keith S. Adams ADAM21 Adam88282 08-36847734-A John R. Sturm STUR08 Stur36847    etc. Notes :     1) The account number on the input is 10 digits     2)  The names on...

  • Objective : Write a C Shell script which copies all files(*.java and *.class) from your home dire...

    Objective : Write a C Shell script which copies all files(*.java and *.class) from your home directory to a new one, and Analyze the new directory information such as number of files, user permissions, and disk usage. Sample Output:                                                    << CS Directory Analysis >>      Date:   ============================================================ Current Directory: /home/tomss New Directory Created : /home/tomss/pgm01 File information Total Number of files : 22 files Directory files:   0 files Plain text files:   10 files File have read permissions: 3 files File have...

  • Write feedback on the answer. The question is Transposition and Hashing - Suppose you have to store employee records for your employer, the largest company in the state of Maryland. The primary key is...

    Write feedback on the answer. The question is Transposition and Hashing - Suppose you have to store employee records for your employer, the largest company in the state of Maryland. The primary key is the Social Security number. You need to primarily access individual records, but occasionally expect to need to print out the file for an employee directory. Identify one other way in which you need to access the data and justify a hashing and collision-handling scheme. Answer: The...

  • this is a C++ program! You will write a program that performs the following tasks for...

    this is a C++ program! You will write a program that performs the following tasks for a simple mathematical calculator: (1) Open a user-specified file for input. Prompt for the name of the file, read it into a string variable, echo print it to the terminal and then open it. If the file is not opened, enter into a loop that prints out an error message, resets the input file stream variable (see the hints section), obtains a new file...

  • Question2 uses structured design implemented in C. Array of records (structs) with file I/O is needed....

    Question2 uses structured design implemented in C. Array of records (structs) with file I/O is needed. The program takes two inputs at a time. The name of a person, and, the coin value as an integer in the range 5 to 95. Input coin values should always be divisible by 5 (integer division). Names are one word strings. An example input is: Jane 30 This input line indicates that 30 cents change is to be given to Jane. Output change...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT