[SOLVED] CSE341 Lab 2

30.00 $

Category: Tags: , ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Lab-2-mqea1e.zip (98.9 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
πŸ”’ Securely Powered by:
Secure Checkout
Rate this product

 

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

  • Lab-2-mqea1e.zip