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 answer is D. without the right tags the content wont be accurately indexed
Answer:
Output:
15
20
25
Explanation:
In first iteration value of num is 10. Condition is checked 10 is less than 21 so value of num is incremented by 5 and value 15 is printed than again condition is checked 15<21 so value of num is incremented again and 20 is printed. Again condition is checked 20<21. So 25 is printed. Then 4th time when condition is checked vakue of num is 25 and while loop condition becomes false because 25 is not less than 21 and program is terminated here.
The
piston engine uses the crankshaft to convert the reciprocating motion of the
piston into rotary motion.
<span>The
crankshaft is used to convert reciprocating motion of the piston into rotary
motion, while the conversion process is called torque, which is a twisting
force. Aside from crankshaft, there are a total of four parts of the engine
that work together in order to convert the reciprocating motion into rotary
motion namely cylinder, or also called the chamber of the piston, the piston itself,
and the connecting rod.</span>
Answer:
0 540 100 200 350 400 550 600 750
Explanation:
hope this helped