Answer:
The program in Java is:
import java.lang.*;
public class MyClass {
public static void main(String args[]) {
for(int i= 0;i<360;i+=45){
double angle = Math.round(Math.toRadians(i)*100.0)/100.0;
double cosX = Math.round(Math.cos(angle)*100.0)/100.0;
double sinX = Math.round(Math.sin(angle)*100.0)/100.0;
System.out.println(angle+": "+cosX +" "+ sinX);
}
}
}
Explanation:
This line iterates through the angles from 0 to 360 or 0 to 2*Pi
for(int i= 0;i<360;i+=45){
This calculates the angle to radians
double angle = Math.round(Math.toRadians(i)*100.0)/100.0;
This calculats the cosine of the angle rounded to 2 decimal place
double cosX = Math.round(Math.cos(angle)*100.0)/100.0;
This calculats the sine of the angle rounded to 2 decimal place
double sinX = Math.round(Math.sin(angle)*100.0)/100.0;
This prints the required output
System.out.println(angle+": "+cosX +" "+ sinX);
}
Write the command and explain about each formula in MS Excel
1. SUM
2. AVERAGE
3. MAx
4. MIN
5. COUNT
Answer:
1. SUM --- The SUM function is used to sum all the values that are in a given range. Thus, for example, if you want to add the values between cells A1 and A3, you must write the following command: =SUM(A1:A10)
2. AVERAGE --- The AVERAGE function allows you to average a range of values, throwing the average of these values in the cell where the function is typed. For example, if you want to average the values included between B1 and B3, you should write the following function: =AVERAGE (B1: B3).
3. MAX --- The MAX function, for its part, returns the maximum value of the values included in the function. For example, if the maximum value included between the values C1 and C3 is known, the following function must be written: =MAX (C1: C3).
4. MIN --- The MIN function, in turn, allows to identify the minimum value of the range of values included in the function. For example, if the minimum value included between the values D1 and D3 is known, the following function must be written: =MIN (D1: D3).
5. COUNT --- The COUNT function, finally, is used to count all the cells that have numbers, which have been included in the range of the function. For example, if you want to count all cells that contain numbers between the values E1 and E3, you must write the following function: =COUNT (E1: E3).
Write a class called TextProcessor that implements the methods listed below. Your implementation may use the charAt() and length() methods from the String class You must not use any other String methods, and you must not use any of the methods in the Character class. You may not use any integer literal values except for 0 and 1.
What email program would you suggest and why?
Answer:
An email program
Explanation:
And why?
Answer:
I would suggest g m a i l.
Explanation:
I use G m a i l all the time and I think it is easy to use! A lot of people think it is great too! :)