Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

% Menu displaying names disp ( ' Menu: ' ) ; disp ( ' 1 . Your Name' ) ; disp ( ' 2 .

% Menu displaying names
disp('Menu:');
disp('1. Your Name');
disp('2. Your Father"s Name');
disp('3. Your Grandfather"s Name');
disp('4. Family Name');
% Ask the user to select a name
selection = input('Select a number from the menu: ');
% Assign the selected name based on user input switch selection
case 1
selected Name = 'Your Name';
case 2
selected Name = 'Your Father"s Name';
case 3
selectedName = 'Your Grandfather"s Name';
case 4
selected Name = 'Family Name';
otherwise
selected Name = 'Invalid Selection";
end
% Display the selected name in capital letters disp(['Selected Name in Capital Letters: ' upper(selectedName)]):
image text in transcribed

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

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions