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);
}
}
The best way of doing this would be when you are opening a document application, the first thing that you would do in this case in to click "new". And by clicking new, you would have a fresh new spread sheet.
B. Completely describe your entire thought process
line 4
if salary < 30000
error missing ":"
solution
if salary < 30000:
line 6
tax = salary * 0.2
error is missing identifier for tax
solution add identifier for tax on line 3
tax = 0.0
line 11
error syntax
solution is move tax = salary * 0.4 + 6000 to the right
tax = salary * 0.4 + 6000
Explanation:
here is your answer.. of. different between client / server architecture and peer to peer architecture of the network.