Answer:
The correct answer is option A
Explanation:
Solution
Recall that:
From the question stated,the following segments of code that should be used in replacing the /* missing code */ so that the value 20 will be printed is given below:
Android a = new Android(x);
a.setServoCount(y);
System.out.println(a.getServoCount());
The right option to be used here is A.
Answer:
Replace
if userAge > 20
with
userAge > 19
Explanation:
if userAge > 20 checks if age is 21, 22, 23, 24........
The else condition which prints "I am a teenager" checks if age is 20, 19, 18....
Notice that 20 is inclusive of the else condition; this shouldn't be because for userAge to be less than 20, 20 isn't inclusive
To solve this,
Replace if userAge > 20 with userAge > 19
So that, the else
The else condition which prints "I am a teenager" checks if age is 19, 18, 17, 16....
The answer is "SSD-25GB", and its further calculation can be defined as follows:
- The <u><em>current generation of computer storage devices</em></u> is a hard drive (SSD).
- It uses a flash memory that is substantially faster than a conventional mechanical disc.
- The user does not require Storage or GPU, Video Card cannot be used.
- RAM is a memory volatile that cannot be utilized as storage media.
- SSD is better than magnetic HDD in terms of speed and performance.
- SSD has become substantially quicker than USB 3.0.
That's why the answer is "SSD-25GB".
Learn more:
brainly.com/question/14411313
Answer:
The correct option is;
Industrial warehouse
Explanation:
The job functions of an audiovisual technician in industrial warehouses includes;
1) Preparation and testing as well as checking equipment out and checking of equipment back in
2) Movement of equipment into trucks and vans
3) Ensuring the timely completion of tasks
4) Learn the setup and operation of equipment prior to transportation to destination sires
5) Take part in the warehouse administration.
Answer:
weights = []
total = 0
max = 0
for i in range(5):
weight = float(input("Enter weight " + str(i+1) + ": "))
weights.append(weight)
total += weights[i]
if weights[i] > max:
max = weights[i]
average = total / 5
print("Your entered: " + str(weights))
print("Total weight: " + str(total))
print("Average weight: " + str(average))
print("Max weight: " + str(max))
Explanation:
Initialize the variables
Create a for loop that iterates 5 times
Get the values from the user
Put them inside the array
Calculate the total by adding each value to the total
Calculate the max value by comparing each value
When the loop is done, find the average - divide the total by 5
Print the results