Starting from:

$30

CSE341-Assignment Lab 02 Solved

Task 01
Take two numbers as input, divide them, print the message “The remainder is” and then display the remainder in the next line.

Sample Execution

1  (1st input)

2  (2nd input)

The remainder is

1

Task 02
Take an 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 down the left margin as First initial, then Third initial and finally the Second initial..

Sample execution:

Enter  First  Initial:  S Enter

Second  Initial:  F Enter Third  Initial:  L

S

L

F

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:  F

IN  DECIMAL  IT  IS  15

More products