Question

A computer program is a collection of instructions that performs a specific task when executed by...

A computer program is a collection of instructions that performs a specific task when executed by a computer. Most computer devices require programs to function properly. There are various structures included in computer programs making them readable and concise. With this in mind, answer the following questions:

1. List FIVE (5) reasons why a comment should be placed at the start of the program. (5)
2. Discuss the meaning of a variable declaration and the appropriate ways to name variables. (5)
3. Explain in detail extreme precision in programming. (5)
4. Provide ANY FIVE (5) examples of high-level programming languages. (5)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Please find the required answers as the following:

=== (1) ===
Reasons for placing comment at the start of the program:
- Program planning and review
- Code description for context declaration
- Resource inclusion
- Description of metadata available for the program
- Automatic generation of code documentation
- Helps in debugging the code by authors/editors

=== (2) ===

In most of the programming languages, variable declaration is often performed at the beginning of its "main" or "drive" code/script segment. Declaring a variable indcates its type and value that is going to be used later in the program for logical and mathematical manipulations.

In general, (as the programming language of context is not giving). A variable declartion cotains:
- Data type of variable (integer, floating point number, character etc.)
- Variable name (Different languages have different syntatic restriction on an allowed variable name)
- Variable value. This is most of the times an optional value (according to its data type) to be given to a variable at the time of its first instatiation.

=== (3) ===

Extreme precision can mean two things in programming as the exact context is not given here:
1) One, it means the type of programming that while executing a sequence of instructions also keep other modifications with the code or other variables into consideration. In other words, it keeps the effect of any runtime modification in other code segments into account while executing a particular code section.
2) Second, a programming sytle that deals with the usage of high precision data type variables for mathematical manipulation and stores and propagates the results without the loss mathematical precision.

=== (4) ===

Java, C, C++, Python, C#

Add a comment
Know the answer?
Add Answer to:
A computer program is a collection of instructions that performs a specific task when executed by...
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
  • C++ please Project: Working with Text Write an object-oriented program the performs the following tasks: ....

    C++ please Project: Working with Text Write an object-oriented program the performs the following tasks: . Reads a text file provided along with this data and maintains it an object. Determines the number of characters and keeps in the object. Determines the number of words and retains the result in the object. Determines the number of paragraphs and keeps the result in the object. A possible class definition: class Textutil { string text = ** int words = @; int...

  • pls answer all questions 1) A step-by-step solution to a problem is called a. hardware b....

    pls answer all questions 1) A step-by-step solution to a problem is called a. hardware b. an operating system c. a computer language d. an algorithm 2) separated the programming task from the computer operation tasks. a. Algorithms b. Data processors c. High-level programming languages d. Operating systems 3) is a 16-bit code that can represent symbols in languages other than English. a. ASCII b. Extended ASCII c. EBCDIC d. Unicode 4) When you want to download music to a...

  • Lab #7 CSE110 - Arizona State University Topics • Basic arrays Coding Guidelines • Give identifiers...

    Lab #7 CSE110 - Arizona State University Topics • Basic arrays Coding Guidelines • Give identifiers semantic meaning and make them easy to read (examples numStudents, grossPay, etc). • Keep identifiers to a reasonably short length. • Use upper case for constants. Use title case (first letter is upper case) for classes. Use lower case with uppercase word separators for all other identifiers (variables, methods, objects). • Use tabs or spaces to indent code within blocks (code surrounded by braces)....

  • The discussion: 150 -200 words. Auditing We know that computer security audits are important in business....

    The discussion: 150 -200 words. Auditing We know that computer security audits are important in business. However, let’s think about the types of audits that need to be performed and the frequency of these audits. Create a timeline that occurs during the fiscal year of audits that should occur and “who” should conduct the audits? Are they internal individuals, system administrators, internal accountants, external accountants, or others? Let me start you: (my timeline is wrong but you should use some...

  • This C++ Program consists of: operator overloading, as well as experience with managing dynamic memory allocation...

    This C++ Program consists of: operator overloading, as well as experience with managing dynamic memory allocation inside a class. Task One common limitation of programming languages is that the built-in types are limited to smaller finite ranges of storage. For instance, the built-in int type in C++ is 4 bytes in most systems today, allowing for about 4 billion different numbers. The regular int splits this range between positive and negative numbers, but even an unsigned int (assuming 4 bytes)...

  • First, read the article on "The Delphi Method for Graduate Research." ------ Article is posted below...

    First, read the article on "The Delphi Method for Graduate Research." ------ Article is posted below Include each of the following in your answer (if applicable – explain in a paragraph) Research problem: what do you want to solve using Delphi? Sample: who will participate and why? (answer in 5 -10 sentences) Round one questionnaire: include 5 hypothetical questions you would like to ask Discuss: what are possible outcomes of the findings from your study? Hint: this is the conclusion....

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