Write a script that...
이전 댓글 표시
This is one script that I have to write but i have no idea where to start. Any hints please?
The behavior of a bird (for the purpose of the exercise) is such that: If it rains and the bird is hungry: the bird eats If it rains and that the bird is not hungry: the bird sleeps If it does not rain and the bird is hungry : the bird sings If it does not rain and the bird is not hungry: the bird sleeps If it does not rain or if the bird is not hungry : the bird is happy Write a script that asks the user if the bird is hungry and if it rains. Depending on the user response, the script displays what the bird is doing and if he is happy or not. Use at least one logical operator
Thanks in advance
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Data Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!