ANSWER: GIVE ME BRAINLIEST AND ILL GIVE YOU THE ANSWER
EXPLANATION: ALL YOU NEED TO DO IS GIVE ME BRAINLIEST FOR THE ANSWER
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:
Answer: d. the time quantum should be as small as possible.
Explanation: Round robin is a CPU scheduling algorithm. If the time quantum is extremely small, number of context switches is very high, round robin scheduling will be same as processor sharing algorithm. Then the algorithm is good. Very large time quantum will make response time of processes too much which may not be tolerated in interactive environment.
Answer:
Explanation:
The following code is written in Java, the function takes in a list with the previous day's values. The function then uses that list, loops through it and multiplies each individual value by 2 and returns the modified list. The first red square represents the test case for the function, while the second red square in the image represents the output.
public static ArrayList<Integer> doubleIt(ArrayList<Integer> mylist) {
for (int x = 0; x<mylist.size(); x++) {
mylist.set(x, mylist.get(x)*2);
}
return mylist;
}