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

Using the \"Programming Elements\" article, available in the Weeks 5 & 6 Referen

ID: 3585539 • Letter: U

Question

Using the "Programming Elements" article, available in the Weeks 5 & 6 Reference Materials, match the following: B. 8 ... Variables A determine whether some condition is true. C. 4 Expressions .. B. store pieces of data which the program is using, such as the value of the light sensor reading. F. 4 Assignments C. compute new values from old values. D. The expression i++... A. 4 Conditional statements or logical expressions ... D fetches the old value of the variable ithen adds variable 1 to the value of the i, and finally assigns the new value to the variable i (increments by is a sequence of several statements that might be repeated until some condition is met. A loop. .. store values into variables.

Explanation / Answer

Please find below the answers mapped and explantion for each answer:

Variables... -> B. store piece of data which the program is using , such the value of the light sensor reading
Expressions... -> C. compute new values from old values
Assignments... -> F. store values into variables
The expression i++... -> D. fetches the old value of the variable i, then adds 1 to the value of the variable i, and finally assigns the new value to the variable i(increments i).
Conditional statements or logical expressions... -> A. determine whether some condition is true
A loop... -> E. is a sequence of several statements that might me repeated until some condition is met

Explanation:

1)Variables are the very basic thing in programming it is used to stire the state of object or values
like example in c/c++ programming language

int i=0;
float j=0.0;

here i and j are the variabes and int and float are the data types.

2)Expressions
it is used to compute like add,sub
int i=0;
int j=9;
i = j+7; //add expression

3)Assignments
it is used to store the value in variabes
like
int i=0;
i is a variable and assigning value 0

4)The expression i++

it is called the postincremnt operator
it incremnet the varibales value
int i=1;
i++;//still value of i 1
print(i)//print 2 as it get incremented by 1

5)Conditional statements or logical expressions

it is used to evalute boolean/conditional expression

int i=0;
int j=1;

i==0;//true
i==j;//false

6)A loop

for loop , while loop, do..while loop are the types of loop
it is used to execute same expression until defined time

for(int i=0;i<10;i++)
{
printf("%d",i); //will print 0,1,2,3,4,5,6,7,8,9
}
in above expample it will print value of i until the value of i is less than 10

please do let me know if u have any concern...

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote