Answer:
a)
Explanation:
Function 9 of interrupt 21h is display string.
Answer:
TPC is better, according to a website.
Explanation:
Answer:
user_salary = int(input("Please Enter Your Salary : "))
if user_salary in range(10000, 20000):
print("Tax = ",int(user_salary/100*1))
elif user_salary in range(20000, 30000):
print("Tax = ",int(user_salary/100*2))
elif user_salary in range(30000, 40000):
print("Tax = ",int(user_salary/100*3))
else:
print("No Tax!")
Explanation:
COMPLETE QUESTION
I. public class Test {
public static void main(String[] args){
System.out.println("Welcome to Java!");
}
}
II. public class Test { public static void main(String[] args) {System.out.println("Welcome to Java!");}}
Answer:
Both codes will compile and run and display Welcome to Java, but the code in II has a better style than I
Explanation:
When written codes, paying attention to proper coding styles and efficient memory management enables us to create programs that are highly efficient, coding styles refer to proper indentions and avoiding too lenghty lines of code (as is in code I), adding approprite comments etc.