Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve the following problems in MATLAB Decision making statements dt. Il-essels 1. Write a MATLAB program to accept two integers and check whether they are

image text in transcribed
Solve the following problems in MATLAB Decision making statements dt. Il-essels 1. Write a MATLAB program to accept two integers and check whether they are equal or not. 2. Write a MATLAB program to check whether a given number is even or odd 3. Write a MATLAB program to check whether a given number is positive or negative 4. Write a MATLAB program to find whether a given year is a leap year or not 5. Write a MATLAB program to read the age of a candidate and determine whether it is eligible for casting his her own vote. 6. Write a MATLAB program to accept the height of a person in centimeter and categorize the person according to their height Perteight = 150.0 and PerHeight = 165.0 and Perhieight = 1950- "The person is taller otherwise Abnormal height 7. Write a MATLAB program to accept a coordinate point in a XY coordinate system and determine in which quadrant the coordinate point les Switch-Case 8. Write a MATLAB program in to read any Month Number in integer and display Month name in the word using switch-case 9. Write a MATLAB program using switch case to find 1. Area of a circle 2. Area of a rectangle 3. Area of a triangle 10. Write a MATLAB program using switch case to accept a grade and display the equivalent description: E Excellent V Very Good G Good A Average F Fail

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 Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions