0% found this document useful (0 votes)
118 views

CS10-8L: Computer Programming Laboratory Machine Problem #12: For Loops

This document provides instructions for Machine Problem #12, a MATLAB assignment. It instructs students to write a script that prompts the user to input a number from 1-9 and displays a figure based on the number. It specifies to include header comments with identifying information and to submit a zip file with a PDF of the problem instructions and screenshots, and the MATLAB script file.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
118 views

CS10-8L: Computer Programming Laboratory Machine Problem #12: For Loops

This document provides instructions for Machine Problem #12, a MATLAB assignment. It instructs students to write a script that prompts the user to input a number from 1-9 and displays a figure based on the number. It specifies to include header comments with identifying information and to submit a zip file with a PDF of the problem instructions and screenshots, and the MATLAB script file.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

CS10-8L: Computer Programming Laboratory

Machine Problem #12: For Loops

Name: JINGONA, Fatimah Rahima T. Score:


Section: OL68 Date: 10-29-20

OBJECTIVES
● To familiarize the students with the MATLAB interface.
● To enable the students to use some basic operations.

Instructions:
1. Save your file as Surname_Firstname_MP12. Ex. Santos_Jared_MP12

2. You will submit a zip file containing the following and send it to BB.

a. PDF file of Machine Problem 12 provided with the screenshot of your answers.
b. MATLAB script with .m extension.

3. Your program must have comments for each section.


Header Comments:
%{
This demo program shows how good a MATLAB program is
Written by: Raymond Sedilla
Date: August 27,2020
Time: 2:20pm
Program: BSIE
Course: CS10-8L
Section: B20
School: Mapua University
%}

MACHINE PROBLEM

1. Write a script that will prompt the user to input a number from 1 – 9 only and display the
figure below.

In the editor window, take a screenshot and paste your output:

Prepared by: Raymond Sedilla, Mapua University


CS10-8L: Computer Programming Laboratory
Machine Problem #12: For Loops

In the command window, take a screenshot and paste your output:

Prepared by: Raymond Sedilla, Mapua University


CS10-8L: Computer Programming Laboratory
Machine Problem #12: For Loops

Prepared by: Raymond Sedilla, Mapua University

You might also like