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

Find the value of the following expressions 9/4 (2.0+3\"2(8-2+1) Selective Execu

ID: 3589150 • Letter: F

Question

Find the value of the following expressions 9/4 (2.0+3"2(8-2+1) Selective Execution Find the value of the logical expression if x=-3.56, y=0.0, and z=44.7 (xcay).AND. (yc.z) IF (N>-90)THEN PRINT ."Excellent" ELSE IF (N-80) PRINT "Good" ELSE IF (N-70) PRINT ."Fair" ELSE PRINT "Bad" END IF Describe the output if N=10 Describe the output if N-90 Describe the output if N-89 Describe the output if N-70 Describe the output if N=0 Repetitive Execution DO I=1,5 PRINT , I Describe the output. DO J=1,1,-1 PRINT J END DO END DO Write statements to print the even positive integers up to 100 Write the psuedocode to read, count and sum the number of samples recorded in a data logger for an experiment. Input/Output Write a format statement to read the values A=6.25, B=-1.9,C=75.0,D=.182,E-625.37 from the file containing the following data (b stands for blank) assume the first character is used for control bb625b-19b750bbbbb182bb625327

Explanation / Answer

Fine the value of the expressions:
9/4: 2 (Please note that this is an integer division, and the result will show only the integral part of the value)
(2.0+3**2)/(8-2+1)
   = (2.0+9) / (8-2+1)
   = 11.0 / (6+1)
   = 11.0 / 7
   = 1.571429
Selective Execution.
Find the value of the logical expression, if
x -3.56, y = 0.0, and z = 44.7
(x<=y) AND (y<=z)
Here x(-3.56) is less than y(0.0).
And y(0.0) is also less than z(44.7)
So, both the expressions are True.
True AND True will result in a boolean result True.

IF(N>=90) THEN
   PRINT *, "Excellent"
ELSE IF(N >= 80)
   PRINT *, "Good"
ELSE IF(N >= 70)
   PRINT *, "Fair"
ELSE
   PRINT *, "Bad"
END IF

In the above problem:
If N = 10,
All the conditions fail, and therefore, the ELSE block will be executed.
So, the output is: Bad

If N = 90,
The first condition itself satisfies, so, that block will be executed.
So, the output is: Excellent

If N = 89,
The first condition fails, and the second condition satisfies, so that block will be executed.
So, the output is: Good

If N = 70,
The first, and second conditions fail, and the third condition satisfies, so that block will be executed.
So, the output is: Fair

If N = 0,
Again all the conditions fail, and therefore, the ELSE block will be executed.
So, the output is: Bad

Write statements to print the even positive integers upto 100
for(int = 2; i <= 100; i += 2)   //For values from i = 2 upto 100, each value incremented by 2.
   PRINT i   //Print i value.

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