Professional Documents
Culture Documents
Assignment 01
Section: 6, 7 & 8
Spring 2021
Total marks: 40 (20+10+10)
Instructions
1. Write a program that will prompt the user to enter a line of text (take input until
the user enters the character, “full stop” (.) ). You have to count the number of
uppercase and lowercase letters in that text.
Sample input-output:
Enter a text: Enter a text:
“One Hundred Years of Solitude” is Course name- Microprocessor Interfacing
a great book. & Embedded System Lab.
Uppercase: 4 Uppercase: 6
Lowercase: 33 Lowercase: 46
2. Write a program that will read a decimal number and the program will print the
following triangle pattern as below according to the inputs.
Sample input-outputs:
Number: 10 Number: 12
* *
** **
*** ***
**** ****
***** *****
****** ******
******* *******
******** ********
********* *********
********** **********
***********
************
3. Write a program in assembly language that will ask the user to input the lengths
of the three sides of a triangle and verify if the input sides can form a triangle.
Hint: The sum of any two sides of a triangle must be greater than the third side.
Follow the output format given below.
Example 1 Example 2