Answer:
please mark as brainliest!!
Explanation:
public class SumOfDigits{ public static void main(String args[]) { Scanner sc = new Scanner(System.in); System.out.println("Please enter a number to calculate sum of digits"); int number = sc.nextInt(); // Remember number/10 reduces one digit from number // and number%10 gives you last digit int sum = 0; int input = number; while (input != 0) { int lastdigit = input % 10; sum += lastdigit; input /= 10; } System.out.printf("Sum of digits of number %d is %d", number, sum); // closing Scanner to prevent resource leak sc.close(); } }
Answer:
101.1
Explanation:
Keep in mind that octal has 8 numbers
Step 1: Split your number in 2 parts (integer part and decimal part):
- integer part 65
- decimal part 0.125
Step 2: Convert the decimal part. For this step you need to multiply your decimal part and 8 (8 correspond the octal base) and get the integer part until you need it:
0.125 * 8 = 1
So your decimal part correspond to number 1 in octal = (1)8
Step 3: Convert integer part: for this step you need to divide your integer part by 8 until you can and get the remainder
65 / 8 = 8 remainder 1
8 / 8 = 1 remainder 0
1 / 8 = 0 remainder 1
Step 4: join the remainders from bottom to top and get the integer part
101
Step 5: join the integer part and the decimal part to get the octal convertion
101.1
Answer:
They are both ways to identify assets (e.g., persons, animals, objects).
Explanation:
A barcode is a bit of information (usually a number) printed as a line or block pattern on a surface (e.g., a sticker).
An RFID is a bit of computer memory with an antenna.
Both can be read with the appropriate scanner device.
Answer:
G=(A^3 + B) * 4-c^2
To calculate G if A=3, b=4 and C=5
cobegin
p1: A^3 = 27
P2:C^2 =25
P3: p1 +B =31
P4:P3*4 =124
P5:P4-P2 =99
coend
Explanation:
One operation is performed at a time, and on the basis of priority as we have only one processor.
Application of a new technology and is much superior to rival products