There is no technical reason for using one or the other, a computer could easily handle both variants.
The reason for hex is that it is so much more intuitive and practical to use. It is quicker to write, because it requires fewer characters. With bits, you would be very likely to miss count at some point and also wouldn't notice typos, because who actually remembers all 24 characters. The length also makes it harder to read: where does the green channel start/where is the 9th character?
Additionally, hex numbers are closer to the typical decimal system, only adding 6 symbols, while with binary you remove 8 symbols, which makes it a bit more familiar and easier to learn.
I'm guessing your television if it's a flat screen
A computer can be helpful in completing homework because it gives you access to lots of sources of information like graphing websites, calculators, educational games & programs that can help you. It also allows for an easier process to submit work, organize papers, & presentations.
Answer:
import java.util.*;
import java.util.Scanner;
import java.io.*;
public class Main
{
public static void main(String[] args) {
System.out.println("Enter the percentage:");
Scanner sc1= new Scanner(System.in);
int percent=sc1.nextInt();
switch((int)percent/10)
{
case 10:
case 9:
System.out.println("Grade: A");
break;
case 8:
System.out.println("Grade: B");
break;
case 7:
System.out.println("Grade: C");
break;
case 6:
System.out.println("Grade: D");
break;
case 5:
case 4:
case 3:
case 2:
case 1:
System.out.println("Grade: F");
break;
}
}
}
Explanation:
The program is as mentioned above. The grades are alloted as per the marks.