Concepts of Programming Languages (11th Edition)
Concepts of Programming Languages (11th Edition)
11th Edition
ISBN: 9780133943023
Author: Robert W. Sebesta
Publisher: PEARSON
Expert Solution & Answer
Book Icon
Chapter 5, Problem 1RQ

Explanation of Solution

Names:

To identify an entity present in the program, strings of character are used and it is called as name.

Design issues for the name:

The primary design issues for the name are discussed below:

  • Case sensitivity of the names.
    • The design issue that rise with the case-sensitivity is that language constructs that looks similar must also contain the same meanings as defined.
  • Reserved words or keywords are the special words of the language.
    • Every programming language contains own pre-defined keywords, reserved words.
    • The design issues will be in re-defining the key words which can be confusing and using the reserved words will be better choice in the language design.
    • There will be a readability issue rather than the readability issue.

Some of the example of design issues that occur with the names:

While writing names of the identifier there are some of the naming rules that should be followed and below are some of the example design issues that occur with the names:

  • The name of the identifier should not be as the name of the keyword that is predefined.
    • Some of the keywords such “enum”, “static”, “class” cannot be used as the identifiers name.
  • Constant that are defined should be present in the upper case.
    • Constant variables that are defined to be final are considered as constant.
    • For case sensitive programming language the case of the words plays a vital role that is proper usage of lower case and upper case is required.
    • The variable “run”, “RUN” or “Run” will have different meaning for the case sensitive programming languages.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
Which one of the 4 Entities mention in the diagram can have a recursive relationship?    If a new entity Order_Details is introduced, will it be a strong entity or weak entity? If it is a weak entity, then mention its type (ID or Non-ID, also Justify why)?
Please answer the JAVA OOP Programming Assignment scenario below: Patriot Ships is a new cruise line company which has a fleet of 10 cruise ships, each with a capacity of 300 passengers. To manage its operations efficiently, the company is looking for a program that can help track its fleet, manage bookings, and calculate revenue for each cruise. Each cruise is tracked by a Cruise Identifier (must be 5 characters long), cruise route (e.g. Miami to Nassau), and ticket price. The program should also track how many tickets have been sold for each cruise. Create an object-oriented solution with a menu that allows a user to select one of the following options: 1. Create Cruise – This option allows a user to create a new cruise by entering all necessary details (Cruise ID, route, ticket price). If the maximum number of cruises has already been created, display an error message. 2. Search Cruise – This option allows to search a cruise by the user provided cruise ID. 3. Remove Cruise – This op…
I need to know about the use and configuration of files and folders, and their attributes in Windows Server 2019.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Text book image
CMPTR
Computer Science
ISBN:9781337681872
Author:PINARD
Publisher:Cengage
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning