Preview

Homework 2

Powerful Essays
Open Document
Open Document
1897 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Homework 2
Homework 2 1. What common programming language statement, in your opinion, is most detrimental to readability and why do you think that?

The go to statement in my opinion can be the most detrimental to program readability, because it makes it difficult to keep track of where the program has been and will go during debugging. Extensive use of go to statements make it difficult to impossible to keep the program code in a top down format.

2. How does the distinguishing between upper- and lowercase in identifiers affect the three criteria?

The affect to readability can be positive when it is used in conjunction with a cohesive programming technique. The use of upper case letters to help certain types of identifiers stand out in the code can be highly beneficial.

The affect on writability will be positive because the readability of a program helps to improve the writability.

The affect on reliability will also be positive because the more readable, and writable a language then there is a positive affect on the reliability.

3. How do type declaration statements for simple variables affect the readability of a language?

Having type declarations that are easy to understand are very important to the readability of a programming language. When the type declarations are cryptic or easily confused it degrades the readability because it is not as easy to identify the variable type or distinguish between them.

4. Write an evaluation of Java and of C++, using the criteria described in this chapter. Please be thorough and provide a reason/justification for your evaluation.

C++

Readability:

C++ is not an overall simple language which complicates its readability. It does however have very good control structures and data type structures which can help the readability. But in general it can be difficult to read.

Writability:

C++ allows

You May Also Find These Documents Helpful

  • Satisfactory Essays

    PT1420 Chapter 3 Review

    • 1062 Words
    • 8 Pages

    7. because it could be a variable conflict, the global variables are inherited throughout the whole program, so it very well could conflict with others…

    • 1062 Words
    • 8 Pages
    Satisfactory Essays
  • Good Essays

    This paper will describe the variable naming rules of three different programming languages. These three languages are Visual Basic, Python, and Java. Each of these languages has different rules that apply to them and some similarities. I will describe the rules and the similarities and differences in the next few paragraphs.…

    • 878 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Nt1310 Unit 8 Study Guide

    • 546 Words
    • 3 Pages

    13. Writing a program in a language such as C++ or Java is known as _____ the program.…

    • 546 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    Homework 3

    • 830 Words
    • 4 Pages

    Molecule x blocked the ion channel receptor site so acetylcholine could not attach therefor not allowing the muscle to ultimately contract.…

    • 830 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    In a declarative language, language is used that in its simplest form, just makes sense. There is no intricate code that is confusing. One example in SQL would be creating tables: CREATE TABLE Employee. The user can create a simple table without having to know the inner workings of how the table is actually created.…

    • 434 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Pt1420 Unit 7 Analysis

    • 737 Words
    • 3 Pages

    1. Simple to learn: Generally speaking, dynamically written languages are straightforward for beginners because they remove away a lot of whichever’s performing on under the surface (e.g.…

    • 737 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Unit 5 PT1420

    • 959 Words
    • 7 Pages

    The case structure lets the value of a variable or an expression determine which path of execution the program will take.…

    • 959 Words
    • 7 Pages
    Good Essays
  • Powerful Essays

    EAS230Syllabus

    • 1748 Words
    • 8 Pages

    C++ programming: editing, compiling, user I/O, variables (ints, doubles, char, strings, booleans), loops, decisions, functions, pointers, arrays, tables, databases, sorting.…

    • 1748 Words
    • 8 Pages
    Powerful Essays
  • Good Essays

    2. Class objects normally have _____ that perform useful operations on their data, but primitive variables do not.…

    • 1518 Words
    • 7 Pages
    Good Essays
  • Better Essays

    7) Global variables make debugging difficult because any statement in a program can change its value.…

    • 1580 Words
    • 11 Pages
    Better Essays
  • Good Essays

    A reasonable approach for an AD password policy, this will be determined by how, & what your ideas are and what your trying to accomplish. I know that you’d mention that a competitor has recently been hack into and security is the number one thing that should be addressed. This does not have to mean that you have to lose productivity over trying to secure your networks information. Simple measure like user names and passwords can be used to protect less sensitive information however how strong you make those usernames and passwords can have a great effect on how well your information is protected.…

    • 428 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    5. What two things must you normally specify in a variable declaration? You must specify the variable type and identifier.…

    • 748 Words
    • 3 Pages
    Powerful Essays
  • Good Essays

    Exam 1 Study Guide COMPLETE

    • 2065 Words
    • 11 Pages

    14. Which of the following statements concerning the world's most widely distributed language family is incorrect?…

    • 2065 Words
    • 11 Pages
    Good Essays
  • Good Essays

    First, Cullington notes common arguments of the negative impact of texting. For instance, the one about students the usage of too many abbreviations.Sometimes those abbreviations are discovered in students' formal writing. Consisting of “cuz”, an abbreviation normally used for because. Another…

    • 366 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    03

    • 293 Words
    • 1 Page

    2. Bold statement because the sentences makes the reader want to keep reading to see if I the statements are true.…

    • 293 Words
    • 1 Page
    Satisfactory Essays

Related Topics