0% found this document useful (0 votes)
29 views3 pages

MATLAB Machine Problem 4: Debugging

This document provides instructions for a MATLAB debugging assignment. Students are asked to write a MATLAB script that calculates the number of seconds in a week based on there being 86400 seconds in a day and 7 days in a week. They must include header comments with their name, date, time, program, course, section, and school. They also need to take screenshots of their script and output and submit it in a zip file along with a PDF with the problem provided.
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)
29 views3 pages

MATLAB Machine Problem 4: Debugging

This document provides instructions for a MATLAB debugging assignment. Students are asked to write a MATLAB script that calculates the number of seconds in a week based on there being 86400 seconds in a day and 7 days in a week. They must include header comments with their name, date, time, program, course, section, and school. They also need to take screenshots of their script and output and submit it in a zip file along with a PDF with the problem provided.
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

CS10-8L: Computer Programming Laboratory

Machine Problem #4: 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_MP4. Ex. Isip_Cheryl_MP4

2. You will submit a 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: 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. Keeping in mind there are 86400 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.

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 #4: 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 #4: Debugging

Prepared by: Cheryl Mari M. Isip, Mapua University

You might also like