Please write the whole question, is it asking for the function that requests user input?
Answer:
Purchased.
Explanation:
when purchased materials are received from suppliers and transported to raw materials inventory rather than waiting to compute the price variance when the materials are withdrawn from
raw materials inventory and used in production. Also, computing the price variance when the materials are purchased allows materials to be carried in the inventory accounts at their standard cost.
1. B joint application design
2. A it is necessary to write most of the new code manually
3. D since users have been involved in the pro typing, managers can be confident that the system can handle large numbers of users
4. B extreme programming
5. C code that is produced using OOD is easy to secure
6. A more testing is preferable to less testing
7. C object-oriented development
8. D component-based development
9. A object
10. B the code can only represent information as objects
Answer:
public static ArrayList manyStrings(ArrayList<String> list, int n){
ArrayList<String> newList = new ArrayList<String>();
for (int i=0; i<list.size(); i++) {
for (int j=0; j<n; j++) {
newList.add(list.get(i));
}
}
return newList;
}
Explanation:
Create a method called manyStrings that takes two parameters, list and n
Create a new ArrayList that will hold new values
Create a nested for loop. The outer loop iterates through the list. The inner loop adds the elements, n of this element, to the newList.
When the loops are done, return the newList