Question: Question 3 In a MATLAB script, write a program that prompts a user to input a lowercase letter. Then use an fprintf statement to output

 Question 3 In a MATLAB script, write a program that prompts

Question 3 In a MATLAB script, write a program that prompts a user to input a lowercase letter. Then use an fprintf statement to output the uppercase version of that letter. For this question, use MATLAB's upper() function to convert the character to uppercase. Copy both your script and output into your Word document. Sample Output: Please enter a lowercase character: c The uppercase letter for c is C. >> Please enter a lowercase character: 9 The uppercase letter for q is Q. >> Question 4 In a MATLAB script, write a program that prompts a user to input an uppercase letter. Then use an fprintf statement to output the lowercase version of that letter. For this question, the use of MATLAB's lower() function is not permitted. Convert the character to lowercase using ASCII value arithmetic. Copy both your script and output into your Word document. Sample Output: Please enter an uppercase character: C The lowercase letter for C is c. >> Please enter an uppercase character: Z The lowercase letter for Z is z. >>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!