Answered step by step
Verified Expert Solution
Question
1 Approved Answer
could you answer this question with typing please and do all questions requirement please Write the program and functions below. The program must be commented
could you answer this question with typing please and do all questions requirement please
Write the program and functions below. The program must be commented to indicate the name of each variable in the program and the use of each structures in the program. Failure to comment the program will result in the reduction of marks. a) Develop a function in matlab, Python or C++ that will perform the following(If a function is not developed, no marks will be given) : 1. Prompts the user to enter his or her name 2. Prompts the user to enter his or her age in years (y). 3. Calculates the age of the person in terms of days (d=y365). 4. Prompts the user to enter his or her mass in kg(m). 5. Prompts the user to enter his or her height in m(h). 6. Calculates the body mass index of the user (m/h2). 7. Stores all the elements stated in 2 to 6 in a matrix. b) Develop a program that will call the function in a) repetitiously. The program will prompt the user if her or she wants to enter more information as stated in a) or not. The program should terminate when the user informs the program that he or she does not want to enter anymore information. All numerical the information entered must be stored in an N by 5 matrix where N represents the number of times the function in a) is called. c) When the user terminates the program, the information stored each time the function is called will be displaved in one list as shown below
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started