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

CS10-8L: Computer Programming Laboratory Machine Problem #6: Strings and Functions

This document provides instructions for machine problem 6 on strings and functions in MATLAB. Students are asked to write a MATLAB function that capitalizes the first letter of a string and makes all other letters lowercase. The function takes in a message from a friend with random uppercase letters and standardizes it so it is easier to read. Students are instructed to include header comments, save and submit specific files, and are not allowed to use conditional or repetition statements in their solution.

Uploaded by

Barbie Lat
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)
302 views3 pages

CS10-8L: Computer Programming Laboratory Machine Problem #6: Strings and Functions

This document provides instructions for machine problem 6 on strings and functions in MATLAB. Students are asked to write a MATLAB function that capitalizes the first letter of a string and makes all other letters lowercase. The function takes in a message from a friend with random uppercase letters and standardizes it so it is easier to read. Students are instructed to include header comments, save and submit specific files, and are not allowed to use conditional or repetition statements in their solution.

Uploaded by

Barbie Lat
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 #6: Strings and Functions

Name: Score:

Section: FOPI01 Date: June 24, 2023

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_MP6. Ex. Isip_Cheryl_MP6

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

a. PDF file of Machine Problem 6 provided with the screenshot of your answers.
b. MATLAB function script with .m extension.
c. MATLAB script to invoke the function you created.

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. One of your friends has an awful writing style: he almost never starts a message with a capital letter, but
adds uppercase letters in random places throughout the message. It makes chatting with him very difficult
for you, so you decided to write a plugin that will change each message received from your friend into a
more readable form.

Implement a function that will change the very first symbol of the given message to uppercase, and make
all the other letters lowercase.

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 #6: Strings and Functions

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 #6: Strings and Functions

Prepared by: Cheryl Mari M. Isip, Mapua University

You might also like