Answer:
function [Area,Perimeter,L]=f_circle(x)
% Area: pi*x^2 area of circle with radius x
% Perimeter: 2*pi*x perimeter length of circle with radius x
% x can be a vector
minargs=1;maxargs=1;narginchk(minargs,maxargs); % only 1 input accepted
if ~isequal('double',class(x)) 5 input has to be type double
disp('input type not double');
return;
end
Area=pi*x.^2;
Perimeter=2*pi*x;
end
Answer:
Volatile storage is lost when a computer loses power.
Explanation:
There are different types of storage in the computer. We have those that stores permanently like the disk while we have those that are very volatile.
The permanent storage retain storage in the event of power failure but volatile storage is lost if there is power failure. Example of volatile storage in the computer is RAM
Answer:
The utility of the compact database decreases the size of the given database by making a definite copy of our database in the system while likewise free the given database by overabundance space created by erasing and modifying the information.
Compacting is one of the best way to diminish the physical size of the database. The compact is the process which compress the database and also precise the information of our database.
It basically makes our data small by eliminating some extra space in the system and repairing process mainly improve the performance of the database.
The main difference between the single compact and a compact on close means that the database will be automatically compact when we close the database and single compact means we select the particular database to make it compact.
Answer:
Due to error while posting the answer, the code snippet is attached as pdf file
Explanation:
The code is written in Java and it is an abstract class.
It starts by defining abstract class with the keyword "abstract".
Then it declare two field for shipName and shipYear.
Then a two arguments constructor is defined.
After that the setter and getter method is declared. The getter and setter is also known as accessor and mutator.
Then a String representation of Ship objects is done by overriding the to String method.