subject

Write a function called checkinputs which checks if three inputs parameters are the correct data types. the first, second, and third input variables must be a string, numeric, and logical data type, respectively. the output of checkinputs should be a logical row array, errorcode, with 4 values. if all the tests pass, then errorcode should consist of only false values. if the 1st input parameter is not a string, the 1st array element in errorcode is set true. if the 2nd input parameter is not a numeric, the 2nd array element in errorcode is set true. if the 3rd input parameter is not a logical variable, the 3rd array element in errorcode is set true. the 4th array element in errorcode is set true if three input parameters are not present.

ex:

> > name='joe'; gpa=3; enrollstatus=true; % all datatypes correct

errorcode = checkinputs(name, gpa, enrollstatus)

errorcode =

1×4 logical array

0 0 0 0

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:00, sabrinarasull1pe6s61
Which of the following is a way the operating system prevents unknown or unauthorized users from accessing the system?
Answers: 2
image
Computers and Technology, 23.06.2019 05:00, mikeysoulemison
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most?
Answers: 2
image
Computers and Technology, 23.06.2019 15:30, Dweath50
The processing of data in a computer involves the interplay between its various hardware components.
Answers: 1
image
Computers and Technology, 24.06.2019 11:30, smann211
Convert 11001110(acdd notation) into decimal
Answers: 2
You know the right answer?
Write a function called checkinputs which checks if three inputs parameters are the correct data typ...

Questions in other subjects:

Konu
Mathematics, 20.11.2020 02:30
Konu
Mathematics, 20.11.2020 02:30
Konu
Mathematics, 20.11.2020 02:30
Konu
History, 20.11.2020 02:40