You are on page 1of 3

CS10-8L: Computer Programming Laboratory

Machine Problem #4: Debugging

Name: Allago, Emil Jericho L. Score:

Section: B10 Date: Jan. 6,


2020

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_MP4. Ex. Santos_Jared_MP4

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

a. PDF file of machine problem 4 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: January 6,2021
Time: 7:30am
Program: BSIE
Course: CS10-8L
Section: B20
School: Mapua University
%}

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

Rubrics
1. Correct output 50
2. Comments 10
3. Design and user interface 20
4. Complete submission of files (Zip 10
files)
5. Readability (correct description 10
of variables names, with
indentation in regards to your
code.)

Problem statement:

1. Keeping in mind there are 86,400 seconds per day, write a program that calculates how
many seconds there are in a week, if a week is 7 days. Print the result on the screen.

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

Prepared by: Raymond Sedilla, Mapua University


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

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

Prepared by: Raymond Sedilla, Mapua University


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

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

Prepared by: Raymond Sedilla, Mapua University

You might also like