Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Air university

DEPARTMENT OF ELECTRICAL AND COMPUTER ENGENEERING

EXPERIMENT NO

Lab Title

Student Name: Ali Husnain Reg no: 230601

Objective: ASSINMENT NO 2 SUBMITTED TO SIR MUMMAJID

_ LAB ASSESSMENT:

Attributes Excellent Good Average Satisfactory Unsatisfactory


(5) (4) (3) (2) (1)
Ability to conduct
experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows
the lab safety rules

Total marks: Obtained Marks:

Lab Report Assessment:

Attributes Excellent Good Average Satisfactory Unsatisfactory


(5) (4) (3) (2) (1)
Data presentation
Experimental
Results
conclusion

Total Marks: Obtained Marks:


Date: Signature:

Q NO 1: Prompt the user to enter two values (integers) and the


required operation (+, -,/,*) . The program should perform the
operation and display the result. (use switch to implement the
functionality)?

Code:screenshot
QNO 2: Prompt the user to enter an integer between o and 30000.display the
separate digits at the output e.g., if the user enters 2378.
Output: 2 3 7 8
Hint: (keep dividing by the ten until all the digits are extracted)
Code:
Q NO3: Prompt the user to enter three values. sort the values in
increasing order and display the 0utput.
Code:

You might also like