Question

imporant note (the language of compiler and programming llanguage) The home work is to do a...

imporant note (the language of compiler and programming llanguage)

The home work is to do a survey comparing the following three programming language: COBOL , FOTRAN 77, and PASCAL regarding

: 1- Character set.

2- Reserved(key) words and special symbols.

3- Simple data types and data structures used.

4- Control structures used (selection and loop structures)

5- File structure used.

Homework Answers

Answer #1

COBOL -

1 - Character set - The letters of the alphabet, digits, and special characters form the COBOL character set .

2 - Reserved(key) words and special symbols - A reserved word is a character-string with a predefined meaning in a COBOL source unit. They have a special meaning and cannot be redefined. There are 85 COBOL Standard reserved words.

3 - Simple data types and data structures used - Data types can be numeric, alphabetic, or alphanumeric. Numeric type consists of only digits 0 to 9. Alphabetic type consists of letters A to Z and spaces. Alphanumeric type consists of digits, letters, and special characters. A COBOL copybook is a selection of code that defines data structures. If a particular data structure is used in many programs, then instead of writing the same data structure again, we can use copybooks.

4 - Control structures used -

  • Perform Thru
  • Perform Until
  • Perform Times
  • Perform Varying

5 - File Structure used -

  • Sequential file organization
  • Indexed sequential file organization
  • Relative file organization

FORTRAN 77 -

1 - Character set - The character set consists of the following:

  • Uppercase and lowercase letters, A - Z and a - z

  • Numerals 0 - 9

  • Special characters

2 - Reserved(key) words and special symbols - In FORTRAN, no keywords are reserved in all contexts. Most statements begin with a keyword; the exceptions are the statement function and assignment statements.

3 - Simple data types and data structures used - Except for specifically typeless constants, any constant, constant expression, variable, array, array element, substring, or function usually represents typed data. On the other hand, data types are not associated with the names of programs or subroutines, block data routines, common blocks, namelist groups, or structured records. Data structures used are -

  • Singly linked lists

  • Ragged arrays

  • A perfectly balanced tree

  • A date data type

4 - Control structures used -

  • if conditionals
    • arithmetic if
    • logical if
    • block if
  • select switches
  • do loops
    • implicit do
    • concurrent do
  • do while loops
  • forall loops
  • where statements
  • other control structures are GOTO, ASSIGN, PAUSE, STOP.

5 - File structure used - Fortran allows you to read data from, and write data into files. The OPEN, WRITE, READ and CLOSE statements allow you to achieve this.

PASCAL

1 - Character set - The Pascal character set consists of:

- All upper case letters (A-Z)

- All lower case letters (a-z)  All digits (0-9)

- Special symbols - + * / := , . ;. () [] = {} ` white space.

2 - Reserved(key) words and special symbols - The statements in Pascal are designed with some specific Pascal words, which are called the reserved words. For example, the words, program, input, output, var, real, begin, readline, writeline and end are all reserved words.

3 - Simple data types and data structures used - Integer, real, Boolean and character types are referred as standard data types. Data types can be categorized as scalar, pointer and structured data types. Examples of scalar data types are integer, real, Boolean, character, subrange and enumerated. Structured data types are made of the scalar types, for example, arrays, records, files and sets. Data structures used  are lists, trees and graphs.

4 - Control structures used -

1 - Loops - while-do, for-do, repeat-until, nested.

2 - control statements - break,continue,goto.

5 -  File structure used - Pascal treats a file as a sequence of components, which must be of uniform type. A file's type is determined by the type of the componentsThe PASCAL language provides constructs for allocating or initializing, opening, reading, writing, and closing files. File addresses or references are expressed in terms of symbolic file handles, which are represented in PASCAL as names assigned to a given file.

Know the answer?
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
Similar Questions
After reading the following article, how would you summarize it? What conclusions can be made about...
After reading the following article, how would you summarize it? What conclusions can be made about Amazon? Case 12: Amazon.com Inc.: Retailing Giant to High-Tech Player? (Internet Companies) Overview Founded by Jeff Bezos, online giant Amazon.com, Inc. (Amazon), was incorporated in the state of Washington in July 1994, and sold its first book in July 1995. In May 1997, Amazon (AMZN) completed its initial public offering and its common stock was listed on the NASDAQ Global Select Market. Amazon quickly...
Assignment: What are the main arguments in the article? Please answer within 5 hours. It is...
Assignment: What are the main arguments in the article? Please answer within 5 hours. It is extremely urgent!!!!!!!!!!!!!!!!!!!!!!!! --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- BIOETHICS. Bioethics as a field is relatively new, emerging only in the late 1960s, though many of the questions it addresses are as old as medicine itself. When Hippocrates wrote his now famous dictum Primum non nocere (First, do no harm), he was grappling with one of the core issues still facing human medicine, namely, the role and duty of the...
What topics are covered in the following article? Please answer within 5 hours. It is extremely...
What topics are covered in the following article? Please answer within 5 hours. It is extremely urgent!!!!!!!!!!!!!!!!!!!!!!!! --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- BIOETHICS. Bioethics as a field is relatively new, emerging only in the late 1960s, though many of the questions it addresses are as old as medicine itself. When Hippocrates wrote his now famous dictum Primum non nocere (First, do no harm), he was grappling with one of the core issues still facing human medicine, namely, the role and duty of the physician....
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how the firms resources incompetencies support the given pressures regarding costs and local responsiveness. Describe entry modes have they usually used, and whether they are appropriate for the given strategy. Any key issues in their global strategy? casestudy: Atlanta, June 17, 2014. Sea of Delta employees and their families swarmed between food trucks, amusement park booths, and entertainment venues that were scattered throughout what would...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT