Starting from:

$25

CSE341 - Microprocessors -    Assignment 02  - Lab 03 - Solved

Task 01 
 

Take two numbers as input, multiply them, print the message “The Output” and then display the result in the next line. 

 

Sample Execution 

1  (1st input) 

2  (2nd input) 

The result is 



 

 

 Task 02 
 

Take a Lowercase letter as input from the user (omit error checking, so you do not have to write  code for checking whether the user is inputting upper case or lower case), and display it at the  next position on the next line in Upper case.  

 

Sample Execution 1:  A   a   

Sample Execution 2:  

B  

 b  

 

 

 

 

 

Task 03
 

Write a program to: (a) prompt the user, (b) read first initial, then the middle, and then the last initial of a person's name, and then (c) display them in a single line down.  

 

 

 

Sample execution:  

Enter First Initial: S 

Enter Second Initial: F 

Enter Third Initial: L  

 

SFL 

             

 

Task 04 
 

Write a program to read one of the hex digits A-F, and display it on the next line in decimal.   

 

Sample execution:  ENTER A HEX DIGIT: C  

IN DECIMAL IT IS 12 

 

More products