Answer:
Here is the script:
function dd = functionDMS(dd)
prompt= 'Enter angle in DD form ';
dd = input(prompt)
while (~checknum(dd))
if ~checknum(dd)
error('Enter valid input ');
end
dd = input(prompt)
end
degrees = int(dd)
minutes = int(dd - degrees)
seconds = ( dd - degrees - minutes / 60 ) * 3600
print degrees
print minutes
print seconds
print dd
Explanation:
The script prompts the user to enter an angle in decimal degree (DD) form. Next it stores that input in dd. The while loop condition checks that input is in valid form. If the input is not valid then it displays the message: Enter valid input. If the input is valid then the program converts the input dd into degrees, minutes and seconds form. In order to compute degrees the whole number part of input value dd is used. In order to compute the minutes, the value of degrees is subtracted from value of dd. The other way is to multiply remaining decimal by 60 and then use whole number part of the answer as minutes. In order to compute seconds subtract dd , degrees and minutes values and divide the answer by 60 and multiply the entire result with 3600. At the end the values of degrees minutes and seconds are printed. In MATLAB there is also a function used to convert decimal degrees to degrees minutes and seconds representation. This function is degrees2dms.
Another method to convert dd into dms is:
data = "Enter value of dd"
dd = input(data)
degrees = fix(dd);
minutes = dd - degrees;
seconds = (dd-degrees-minutes/60) *3600;
Answer:
The Last option: Dyadic Communication AND Interpersonal Communication
is the correct one.
Explanation:
Communication can be defined as the process in which one may convey his thoughts or inquires about things.
There are many types of communications as listed above.
- Intrapersonal Communication
- Interpersonal Communication
- Dyadic Communication
- Small Group Communication
- Public Communication
- Mass Communication
- Organizational Communication
- Intercultural Communication.
Under all these, Interpersonal communication and Dyadic communication are the ones that are between two people.
Dyadic communication is the one in which two people relate to exchange thoughts and ideas face-to-face. It is sometimes referred as dialogic relation.
Interpersonal relation can be between two or more than two persons that may know each other. It is clearly specified in this communication that who listener and speaker are.
<h3>I hope it will help you!</h3>
Answer: Awnser below.
Explanation:
Basically, what you're going to need for a computer from my basic knowledge is a motherboard, of course, this is so you can actually use your computer. You'll need a PSU, or so called, a power supply. This will give power to your motherboard and the other components with it. You will need a CPU, this is basically the brains of the computer. This will run your operating system, and main componets. A GPU, this will give you a display for your monitor. And of course, ram. Ram will be giving you display for your monitor, and for running tasks.
For more components, you would need a hard drive, or an SSD, which will store your files and operating system. And of course, a keyboard, mouse, and monitor.
Answer:
/*
Find Largest and Smallest Number in an Array Example
This Java Example shows how to find largest and smallest number in an
array.
*/
public class FindLargestSmallestNumber {
public static void main(String[] args) {
//array of 10 numbers
int numbers[] = new int[]{32,43,53,54,32,65,63,98,43,23};
//assign first element of an array to largest and smallest
int smallest = numbers[0];
int largetst = numbers[0];
for(int i=1; i< numbers.length; i++)
{
if(numbers[i] > largetst)
largetst = numbers[i];
else if (numbers[i] < smallest)
smallest = numbers[i];
}
System.out.println("Largest Number is : " + largetst);
System.out.println("Smallest Number is : " + smallest);
}
}
/*
Output of this program would be
Largest Number is : 98
Smallest Number is : 23
*/
Explanation: