Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please do this the way it is set up and not a for loop A character array called declaration is provided by the template. a

please do this the way it is set up and not a for loop image text in transcribed
A character array called declaration is provided by the template. a Convert the character array into a numerical array of ASCII values by multiplying it by 1 or by using the double() function. b. Determine how many capital letters are in the text. (The ASCII codes for capital letters are between 65 and 90.) c Convert the capital letters to lowercase by adding 32 to their ASCII codes (But do not modify the lowercase letters ) Call the modified numerical aray ascii lower a.Convert the modified array back to text using the char() function. Call the resulting character array declaration_lower. NOTE You may not use the built-n functions lower() and upper() in this problem. Script MATLAB Documentation C Reset 1 load declaration.mat 3 ascii vals = (); 4 num_capitals 0; Xuse a relational operation to determine how nany ASCII codes lie between 65 and 90, inclusive Xmultiply the character array by 1 to convert to numerical array (]; Make this the modified char array with all lower-case letters 7 declaration lower Run Script

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

4. Are there any disadvantages?

Answered: 1 week ago

Question

3. What are the main benefits of using more information technology?

Answered: 1 week ago

Question

start to review and develop your employability skills

Answered: 1 week ago