You are on page 1of 3

CS10-8L: Computer Programming Laboratory

Machine Problem #5: Debugging

Name: Score:

Section: Date:

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_MP5. Ex. Isip_Cheryl_MP5

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

a. PDF file of Machine Problem 5 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: Cheryl Isip
Date: August 27,2021
Time: 2:20pm
Program: BSIE
Course: CS10-8L
Section: B20
School: Mapua University
%}

4. You’re not allowed to use conditional or repetition statements.

MACHINE PROBLEM

1. Most hard drives are divided into sectors of 512 bytes each. Our disk has a size of 16 GB. Fill in the blank
to calculate how many sectors the disk has.

Note: Your result should be in the format of just a number, not a sentence.

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

Prepared by: Cheryl Mari M. Isip, Mapua University


CS10-8L: Computer Programming Laboratory
Machine Problem #5: Debugging

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

Prepared by: Cheryl Mari M. Isip, Mapua University


CS10-8L: Computer Programming Laboratory
Machine Problem #5: Debugging

Prepared by: Cheryl Mari M. Isip, Mapua University

You might also like