MP4B
MP4B
MP4B
Basic Matlab Programming
Machine Problem MP4B Date
Name Course / Section
Estimated Completion Time: 120 minutes
File Name: MP4B_Surname
Problem Statement:
Using a repetition, write a program that will ask the user to enter a character from left or right. Then,
the user will enter a number. The program should generate a ladder of an integer from 1-9 only wherein
the level depends on the number entered and the character should dictate whether it faces right or left.
Sample Output:
Input a Character: 1
R 22
Input a Number: 333
3 4444
55555
Output 666666
1
22 Input a Character:
333 L
Input a Number:
Input a Character: 5
R
Input a Number:
6
Laboratory Exercise Score Sheet
Criteria Score
1 Proper output for a triangle facing left 25
2 Proper output for a triangle facing right 25
Total 50
Raymond B. Sedilla ____________________
Instructor Date