Question: Q . 1 1 An 8 - bit number represents a coded function, bit 3 - 4 deseribe the operation to be performed on the
Q An bit number represents a coded function, bit deseribe the operation to be performed on the number in bits and
tableAdd
tableSubtractDivideMultiply
White a function to extract the number and operntion.
QA plant controller is connected to a series of sensors atong a prod ty ine, each sensor sends its followed by its data to the system. The mapping of sentor IDs is as follows:
tableSensor Code,Parameter,TypeTemperature of steel,FloatCasting counter,IntInspection Okay,Boolean good, O defectFimat
Assume that the keyboard represents the sensor inputs where each input consists of a sensor ID and a value eg indicates sensor sending a temperature of C
Wite a C program to calculate the folowne:
The average temperature of the steel from al temperature readings.
The rate of castinglminute based on the casting counter and lime stamp:
Efficency of the productorn plant, defined as the percentage of good eastings fas indicated by the rispection sensol reative to tolal castings:
Q Repcot the prevous question using a structure to represent the transducer data.
Q Write a C program to count the occurnences of a specfe number in an arry.
O Wrie a program that rotates the ecrente of an ara; postions to the right of left, using pointers.
Example lingut and Output for a right rolation: panters to tho mugers and swap ther values
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
