Question: Q . 1 1 An 8 - bit number represents a coded function, bit 3 - 4 deseribe the operation to be performed on the

Q.11 An 8-bit number represents a coded function, bit 3-4 deseribe the operation to be performed on the number in bits 0.2 and 5.7
\table[[00,Add]]
\table[[01,Subtract],[10,Divide],[11,Multiply]]
White a function to extract the number and operntion.
Q.12A plant controller is connected to a series of sensors atong a prod ty ine, each sensor sends its 10 followed by its data to the system. The mapping of sentor IDs is as follows:
\table[[Sensor Code,Parameter,Type],[1,Temperature of steel,Float],[2,Casting counter,Int],[3,Inspection Okay,Boolean (1 good, O defect)],[4,,Fimat]]
Assume that the keyboard represents the sensor inputs where each input consists of a sensor ID and a value (e.g.1850 indicates sensor 1 sending a temperature of 850 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.13 Repcot the prevous question (0.12) using a structure to represent the transducer data.
Q.14 Write a C program to count the occurnences of a specfe number in an arry.
O.15 Wrie a program that rotates the ecrente of an ara; () postions to the right of left, using pointers.
Example lingut and n=2, Output 4,5,1,2,3 for a right rolation: panters to tho mugers and swap ther values
Q . 1 1 An 8 - bit number represents a coded

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!