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;
}
Answer:
Following are the program in Python programming language
def pyramid_volume(base_length,base_width,pyramid_height):
base_area=base_length*base_width
volume=base_area*pyramid_height*(1/3)
return volume
print('volume for 4.5,2.1,3.0 is:',pyramid_volume(4.5,2.1,3.0))
Explanation:
Here, we define a function "pyramid_volume()" and pass an arguments "base_length,base_width,pyramid_height"
inside that program we have calculated the area of the pyramid and after that we have calculated the volume of that pyramid and return the volume.
Outside of the function we have called the function by passing the arguments.
Wouldn't it Be Stem ?
Science
technology
Engineering
Mathmatics
I'd say professionalism
Professionalism in a workplace setup is acting in a responsible and fair manner in all your personal and work activities. It is always seen as sign of maturity and self-confidence. This work value includes learning every aspect of a job and performing it to the best of your God given ability.
Answer:
'BASIC' meaning; Beginners All-purpose Symbolic Instruction Code