Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PLEASE ANSWER ALL OF THESE IN SHORT SENTENCES. THANK YOU. Answer the following q

ID: 3872303 • Letter: P

Question

PLEASE ANSWER ALL OF THESE IN SHORT SENTENCES. THANK YOU.

Answer the following questions 1. What does a compiler do? 2. What are the steps for doing the programming assignments? 3. What extension should you use for your C source files? 4. What characters are allowed in C variable names? 5 5 6. What guidelines should you follow in creating names for variables? 7. In what variable type should you store the following values? a. A person's age to the nearest year. b. A person's annual salary. c. A person's first initial d. A person's net worth e. The cost of an item. f. The radius of a circle. g. The monthly average temperature h. The distance from sun to planets in our solar system

Explanation / Answer

1 Ans :

A compiler converts a program from a human-readable format into a machine-readable format.

The source code is typically in a high-level programming language (e. g. Pascal, C, C++, Java, Perl, C#, etc.).

The executable code may be a sequence of machine instructions that can be executed by the CPU directly,

or it may be an intermediate representation that is interpreted by a virtual machine (e. g. Java byte code).

2 Ans :

i. Start early

ii. Don't skip class to gain some extra time for doing assignment

iii. Do according to specifications

iv. Use systematic (scientific) approach

v. Develop programs progressively (incrementally)

vi. Follow good programming style and practice

vii. Adequately test your programs and demonstrate that you have done so

viii.Minimize your chances of losing points

3 Ans :

Source codes in C have extension .c (EX: <filename>.c)

4 Ans :

i. A variable name can have letters (both uppercase and lowercase letters), digits and underscore only.

ii. The first letter of a variable should be either a letter or an underscore. ...

iii. There is no rule on how long a variable can be.

5 Ans :

i. Before using variable we need to declare datatype of variable.

ii. intialize value of variable if necessary

6 Ans :

i. Its better to understand if name of the variable represents , for what function we are using variable

(EX : if your creating array for storing student names then represt variable name as char studen_array_name; )

7 Ans :

7a) A person's age to the nearest year : dataype : int

7b) A person's annual salary : datatype : float

7c) A person's first initial : datatype : char

7d) A person's net worth : datatype : float

7e) The cost of an item : datatype : int

7f) The radius of a circle : datatype : float

7g) The mothly average temperature : float

7h) The distance from sun to planets in our solar system : datatype : double

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote