☆ <u>Since, the computer accepts raw data as input and converts into information by means of data processing, it is called information processing machine (IPM).</u>
HOPE IT HELPS ❣️
Answer:
Consider the following code.
Explanation:
save the following code in read_and_interp.m
function X = read_and_interp(s)
[m, n] = size(s);
X = zeros(m, 1);
for i = 1:m
if(str2num(s(i, 2:5)) == 9999)
% compute value based on previous and next entries in s array
% s(i, 2:5) retrieves columns 2-5 in ith row
X(i,1) = (str2num(s(i-1 ,2:5)) + str2num(s(i+1,2:5)))/2;
else
X(i,1) = str2num(s(i,2:5));
end
end
end
======================
Now you can use teh function as shown below
s = [ 'A' '0096' ; 'B' '0114' ; 'C' '9999' ; 'D' '0105' ; 'E' '0112' ];
read_and_interp(s)
output
ans =
96.000
114.000
109.500
105.000
112.000
Answer:
The digital footprint that is left behind can have repercussions in all areas of your teen's life, potentially resulting in missed job opportunities, public sharing of personal information, ruined relationships — or, in what is likely more relevant to them right now: Their parents finding out what they've been up to
Explanation:
Answer:
The program to this question can be describes as follows:
Program:
#include <stdio.h> //defining header file
int main() //defining main method
{
int n,i,x=0; //defining integer variable
printf("Enter a number: "); //print message
scanf("%d",&n); //input value from the user
printf("%d\n",n); //print input value
for(i=1;i<n;i++) //loop to count reverse number
{
x=n-i; //calculate value
printf("%d\n",x); //print value
}
return 0;
}
Output:
Enter a number: 3
3
2
1
Explanation:
- In the above program, three integer variable "n,i and x" is declared, in which variable n we take input from the user end and the variable i and x is used in the loop to calculate the value in the reverse order.
- In the next step, a loop is declared, in which the variable x calculates the value in reverse order and uses a print method to print its value.