Professional Documents
Culture Documents
Name: Score:
Section: Date:
OBJECTIVES
● To familiarize the students with the MATLAB interface.
Instructions:
1. Save your file as Surname_Firstname_MP13. Ex. Isip_Cheryl_MP13
2. You will submit a zip file containing the following and send it to BB.
a. PDF file of Machine Problem 14 provided with the screenshot of your answers.
b. MATLAB script with .m extension.
Problem Statement:
The program will ask for a number. Then will display the odd numbers on that number, Then on
the next line will show the even numbers from the number we have input.
Then Add up all Even numbers…..and Multiply all the Odd numbers
Input Validation:
Input an integer.
In the editor window, take a screenshot and paste your output:
Sample Run:
Input a number: 15
Odd Number: 1 3 5 7 9 11 13 15
Even Number: 2 4 6 8 10 12 14
Sum of Even Numbers: 56
Product of Odd Numbers: 2027025