Algorithm with inputdlg command
이전 댓글 표시
¡Hello everyone!, I need your collaboration with this algorithm, this must be written on a script.
- Make a menu that allows the following:
MAIN MENU
- Read the name and identification number (ID) of the user.
- Print the name and the user identification number (ID) on the screen.
- Indicate whether the user is over or under 30 years old.
- Exit.
Make use of the CASE structure for this menu and develop each option.
Thanks.
댓글 수: 3
Walter Roberson
2012년 11월 19일
Please show what you have achieved so far.
Jimmy
2012년 11월 19일
Walter Roberson
2012년 11월 20일
Please edit this question to have a better title, as the current title has no information about what you are trying to do; your title could apply to most questions that are posted here.
채택된 답변
추가 답변 (1개)
Jan
2012년 11월 19일
0 개 추천
Reading the "Getting Started" chapters of the documentation is a good point to start from. Then define the problem exactly. E.g. "read the name" could mean reading a handwritten name on a sheet of paper, reading from an USB stick or computer readable batch, from the keyboard of from a list on the hard disk.
The indication whether the user is over or under 30 years old, is not clear also: How do you want to decide this?
댓글 수: 2
Jimmy
2012년 11월 19일
Jan
2012년 11월 20일
Sorry, James, this still demands for too much guessing. What is "on the fields"? Does "print on screen" mean a text in a figure or in the command line? How is the age indicated? Please try to be a clear as possible and consider, that we do not have the faintest idea of what you are wanting to achieve. The less we have to guess, the more efficient and likely is a helpful answer.
I assume, that this is a homework question.
카테고리
도움말 센터 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!