Answer:
Import java.awt.*;
import java.util.*;
public class Sprhere
{// Instance Data private double surfaceA, volume, r, diameter; //Constructors public Sphere ()
{r = 0;diameter = 0; surfaceA = 0;volume = 0;}
public Sphere (double radius, double d, double SA, double v)
{this. r = radius; this. diameter = d; this. surfaceA = SA;this.volume = v;}
//--------------------------------------------------------------------// Accesors.//--------------------------------------------------------------------public double get Radius()
{return r;}
public double get Diameter()
{return diameter;}
public double get SurfaceA()
{return surfaceA;}
public double get Volume()
{return volume;}
//--------------------------------------------------------------------// Mutators.//--------------------------------------------------------------------
Answer:
A and B have different output:
A output will be 1
B output will be 123
Explanation:
A
X = 0
do x < 3
x = x+1
print x
while
B
X = 0
do x = x+ 1
print x
while x < 3
For statement A the condition statement which suppose to be after "while" is not set therefore the value of x will be printed.
For statement B the condition statement is set "x < 3" in front of "while" thereby result in iteration until the condition is false.
Statement A output will be 1
Statement B output will be 123
Answer:
The codes below implement the problem statements
Explanation:
public class Percentages {
public static void computePercent (int a,int b)
{
System.out.println(a+" is "+(a*100/b)+"% of "+b);
}
public static void main(String []args)
{
int a=2;
int b=5;
computePercent(a,b);
computePercent(b,a);
}
}
<u>
</u>
<u>Part(b)
</u>
import java.util.*;
public class Percentages {
public static void computePercent (int a,int b)
{
System.out.println(a+" is "+(a*100/b)+"% of "+b);
}
public static void main(String []args)
{
Scanner s= new Scanner(System.in);
int a=s.nextInt();
int b=s.nextInt();
computePercent(a,b);
computePercent(b,a);
}
}
Answer:
Knowledge Acquisition Facility.
Explanation:
The power and effectiveness of the Expert System is equal to the quality of the knowledge it contains. The knowledge has to deal with high complexity and apply the best judgement. collection of expert knowledge is very important and involves the collecting information about a field usually from an expert. This information is stored in a computer program stored as a knowledge base.
Knowledge is always updating so it also very important to keep it up to date and it is done by Knowledge Acquisition Facility.
<span>The correct answer is to be able to loan from banks. Having a good credit score, impacts one's approval for bank loans. It will enable a person to have a higher chance of getting his or her loan, approved by the banks, than those who have low credit scores. </span>