Answer:
0xFF.
Explanation:
The Register A of HSC12 is an 8-bit register.So the maximum value for 8 bit is 8 1's (11111111). So the decimal value for the maximum 8 bits is 255 but all the options given are in hexadecimal so among the given options only 0xFF has the value of 255 in decimal F=(1111)₂.So two F's make 8 bits and their decimal value is 255.
Answer:
Written in Python
import math
principal = 8000
rate = 0.025
for i in range(1, 11):
amount = principal + principal * rate
principal = amount
print("Year "+str(i)+": "+str(round(amount,2)))
Explanation:
This line imports math library
import math
This line initializes principal amount to 8000
principal = 8000
This line initializes rate to 0.025
rate = 0.025
The following is an iteration from year 1 to 10
for i in range(1, 11):
This calculates the amount at the end of the year
amount = principal + principal * rate
This calculates the amount at the beginning of the next year
principal = amount
This prints the calculated amount
print("Year "+str(i)+": "+str(round(amount,2)))
Answer:
Interface
Explanation:
Java does not supports multiple inheritance by class, but we can implement multiple inharitacnce in java using interface, with interface we uses implements keyword.
Example-
Declare interface like below code -
interface parent{
}
and use in child class like below code -
class Child1 implements interface{
}
class Child2 implements interface{
}
Answer:
Answered below
Explanation:
# Program is written in Python programming language
conditioner_in_ml = 0
width = float(input("Enter width in inches: "))
height = float(input("Enter height in inches: "))
length = float (input("Enter length in inches: "))
#Calculate the volume
volume = width * length * height
#Calculate the amount of conditioner per 100 #cubic inches of volume
conditioner_in_ml = volume/ 100
print("The amount of conditioner required for $volume cubic inches is $conditioner_in_ml ml")