Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(SWITCH examples) HW1-2.Write a matlab program that takes a month and day value from a user. Then, program should give horoscope. Note: You should do

(SWITCH examples) HW1-2.Write a matlab program that takes a month and day value from a user. Then, program should give horoscope. Note: You should do this homework by using if (HW1) and switch structures (HW2). Example: Enter a day: 11 Enter a month: 5 11st day of 5th month is Taurus. HW3-4Write a matlab program that takes an option from a user and computer. Options are Stone, Paper and Scissors. Then, program should give result of the game. Note: You should do this homework by using if (HW3) and switch structures (HW4). (IF examples) Take grades for midterm and final exam. If grades are not in the interval of 0 and 100, write an error message. If so, calculate the average grade. Then, show the letter grade of average grade. 0 <= not < 60, F 60<= not < 70, D 70<= not < 80, C 80<= not < 90, B 90<= not <= 100, A Example: Enter your midterm mark: 75 Enter your final mark: 75 Average mark: 75.0000 75.0 is C Enter your midterm mark: 88 Enter your final mark: 93 Average mark: 90.5000 90.5 is A Enter your midterm mark: -10 Enter your final mark: 30 Wrong midterm mark.

examples must written with MATLAB programming

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

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions