CONCEPTS OF PROGRAM...(PEARSON CHANNEL)
CONCEPTS OF PROGRAM...(PEARSON CHANNEL)
12th Edition
ISBN: 9780136680758
Author: 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
2.68♦♦ Write code for a function with the following prototype: * Mask with least signficant n bits set to 1 * Examples: n = 6 -> 0x3F, n = 17-> 0x1FFFF * Assume 1 <= n <= w int lower_one_mask (int n); Your function should follow the bit-level integer coding rules Be careful of the case n = W.
Hi-Volt Components You are the IT manager at Hi-Voltage Components, a medium-sized firm that makes specialized circuit boards. Hi-Voltage's largest customer, Green Industries, recently installed a computerized purchasing sys- tem. If Hi-Voltage connects to the purchasing system, Green Industries will be able to submit purchase orders electronically. Although Hi-Voltage has a computerized accounting system, that system is not capable of handling EDI. Tasks 1. What options does Hi-Voltage have for developing a system to connect with Green Industries' pur- chasing system? 2. What terms or concepts describe the proposed computer-to-computer relationship between Hi-Voltage and Green Industries? why not? 3. Would Hi-Voltage's proposed new system be a transaction processing system? Why or 4. Before Hi-Voltage makes a final decision, should the company consider an ERP system? Why or why not?
Consider the following expression in C: a/b > 0 && b/a > 0.What will be the result of evaluating this expression when a is zero? What will be the result when b is zero? Would it make sense to try to design a language in which this expression is guaranteed to evaluate to false when either a or b (but not both) is zero? Explain your answer
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