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);
}
}
2 Consider the sequence of keys (5,16,22,45,2,10,18,30,50,12,1). Draw the result of inserting entries with these keys (in the gi
Juliette [100K]
Answer:
A) (2,4) tree
- Insertion of key 45 makes key unbalanced and this is because it violates the 2,4 tree so we split the node
- insertion of key 10 makes key unbalanced and this is because it violates the 2,4 tree so we split the node
B) Red-black tree
Explanation:
The diagrams for the solutions are attached showing the results of inserting entries
Answer:
Page Setup Grouping.
Explanation:
In Microsoft Word, Columns break up the page into, at max, 13 columns, and at minumum, 2. The way you go about doing this is
- Go to the Layout Tab
- Go to the Page setup Grouping
- Click on the Columns Action
- In the Dialog Box, choose either from one of the presents, or custom make your own column settings.
- Click Okay
- Done!
Answer:
1 2 3 4 5 6 7 8 End
Explanation:
int i = 1;
while (i != 9){
System.out.print (i + " ");
i ++;
if (i == 9){
System.out.println("End");
}
}
Answer:
HTML
Explanation:
HTML is not a graphic file, as it doesn't support graphics. It instead supports text-base, and only text.
~