1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Bezzdna [24]
4 years ago
13

Test inputs write a function called checkinputs which checks if three inputs parameters are the correct data types. the first, s

econd, 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.
Computers and Technology
1 answer:
Alborosie4 years ago
6 0

Here you go,

Program:


function errorCode = CheckInputs(name, gpa, enrollStatus)

   %Create a errorCode as a 1x4 logical array    

   errorCode=[true true true false];

   %Check number input arguments taken by the function

   %If the number of arguments are less than 3, assign the

   %4th array element in errorCode to true

   if nargin<3

       errorCode(4)=true;

       errorCode(3)=false;

       errorCode(2)=false;

       errorCode(1)=false;        


   %Otherwise(if there are three parameters),    

   else

       %Check whether the first parameter is a string are not

       %and set the first array element with true, if the

       %first argument is string

       if ischar(name)

           errorCode(1)=~(ischar(name));        

       end

       %Check whether the second parameter is a numeric value are not

       %and set the second array element with true, if the

       %second argument is a numeric value


       if isnumeric(gpa)

           errorCode(2)=~(isnumeric(gpa));

       end


       %Check whether the third parameter is a logical value are not

       %and set the third array element with true, if the

       %third argument is a logical value false


       if islogical(enrollStatus)

           errorCode(3)=~(islogical(enrollStatus));

       end

   end  

end

You might be interested in
In linux, a(n) ____ is a data structure that stores all information (such as file permissions, ownership, and file type) about a
Galina-37 [17]
Hi,


Answer => <span>Inode


Good Lessons </span>
4 0
4 years ago
Machine code and Object code is the same right?​
guapka [62]

Answer:

"True" Machine code and Object code is the same.

Explanation:

All code at the same level is considered the same code, so we can say that the machine code, byte code, and the object code with it is of the same type, all of which are considered as the lowest level associated with the common program, these are common. Also known as source code because it is used in translating different languages.

6 0
4 years ago
im running out of gb on my phone, I have a lot of pics saved there and they're taking a lot of space, is there a way to back up
Varvara68 [4.7K]

Answer:

Google Drive

Explanation:

You should be able to download Google Drive, upload the pictures on there and delete them from your gallery. Then you can view them anytime you want.

3 0
4 years ago
Can anybody answer this please hurry
Ludmilka [50]

Answer:

Ada Lovelace

The first one!

Hope this helps!

5 0
3 years ago
Read 2 more answers
Eva is the network architect for her company's large cloud deployment; she has interconnected her private cloud to a community c
ivann1987 [24]

Answer:

The appropriate response is "Cloud bursting".

Explanation:

  • A strategy for the implementation of a program in a proprietary cloud or network infrastructure that explodes onto a public cloud if availability or production for computational power increases, could be considered Cloud bursting.
  • It enables extra cloud capabilities throughout cases where additional facilities have been required.
6 0
3 years ago
Other questions:
  • Create a class named Circle with fields named radius, diameter, and area. Include a constructor that sets the radius to 1 and ca
    7·1 answer
  • Which library research databases include information about articles published in magazines, journals, and newspapers? question 1
    7·1 answer
  • In a ______topology, every device has exactly two neighbors for communication purposes. A failure in any cable or device can tak
    15·2 answers
  • How I to turn this ''loop while'' in ''loop for''? var i = 0; while (i &lt; 20) { var lineY = 20 + (i * 20); line(0, lineY, 400,
    11·1 answer
  • In a dark place you have only a match , a twig , campfire logs , and oil lamp and a candle which do you literally first /
    15·1 answer
  • The costs incurred when a firm buys on the marketplace what it cannot make itself are referred to as
    6·1 answer
  • Subcribe to me for brainly my YT is KeepUsweatin
    9·1 answer
  • Explain the different features available in Print command?
    10·1 answer
  • Which of the following networks had these two goals: a) allowing scientists to work together on scientific projects; and, b) fun
    8·2 answers
  • How to write the algorithm to calculate the square of five numbers
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!