Program p1;
var a,b,c,d : integer; {i presume you give integer numbers for the values of a, b, c }
x1, x2 : real;
begin
write('a='); readln(a);
write('b='); readln(b);
write('c=');readln(c);
d:=b*b - 4*a*c
if a=0 then x1=x2= - c/b
else
if d>0 then begin
x1:=(-b+sqrt(d)) / (2*a);
x2:=(-b - sqrt(d))/(2*a);
end;
else if d=0 then x1=x2= - b /(2*a)
else write ("no specific solution because d<0");
writeln('x1=', x1);
writeln('x2=',x2);
readln;
end.
Mac OS came out in 2001. This is software that was created by Apple to run the "Mac Computers." This software is still used to this day.
MS-DOS came out in 1981. This is software that was created by Microsoft to run x86 computers. This software is no longer used.
Windows New Technology came out in 1985. This is software that was created by Microsoft to run a ton of different computers. This software is still used to this day.
Windows Vista came out in 2006. This software that was created by Microsoft to run a variety of personal computers. This software is no longer used.
By the information given, Windows Vista was the last to be released.
Best of Luck!
Answer:
import java.util.Scanner;
public class num6{
static int getTestScores(){
System.out.println("Enter the Score");
Scanner in = new Scanner(System.in);
int score = in.nextInt();
return score;
}
static double calcAverage(int score1, int score2, int score3){
return (score1+score2+score3)/3;
}
static void displayAverage(double ave){
System.out.println("The Average is "+ave);
}
public static void main(String[] args) {
int num1 = getTestScores();
int num2 = getTestScores();
int num3 = getTestScores();
//Calling Calculate Average
double average = calcAverage(num1,num2,num3);
//Calling displayAverage
displayAverage(average);
}
}
Explanation:
- Using Java programming Language
- Create the four methods
- getTestScores() Uses the Scanner Class to receive an in variable and return it
- calcAverage() accepts three ints as parameter calculates their average and return it
- displayAverage() Accepts a double and prints it out with a concatenated string as message
- In the Main Method, getTestScores is called three times to obtain three numbers from the user
- calAverage is called and handed the three numbers
- printAverage is called to output the calculated average
The answer is the US Secretary of State. <span>At the time of signing,Secretary of State was the title of the man (John Hay) who is the first of the two names in the name of the 1901 treaty that nullified the Clayton-Bulwer Treaty. </span>It was signed by US Secretary of State John Hay and British Ambassador to the United States Lord Pauncefote on the 18th of November 1901.