Answer:
public static void print_popcorn_time(int bag_ounces){
if(bag_ounces<3){
System.out.println("Too Small");
}
else if(bag_ounces>10){
System.out.println("Too Large");
}
else{
bag_ounces*=6;
System.out.println(bag_ounces+" seconds");
}
}
Explanation:
Using Java prograamming Language.
The Method (function) print_popcorn_time is defined to accept a single parameter of type int
Using if...else if ....else statements it prints the expected output given in the question
A complete java program calling the method is given below
public class num6 {
public static void main(String[] args) {
int bagOunces = 7;
print_popcorn_time(bagOunces);
}
public static void print_popcorn_time(int bag_ounces){
if(bag_ounces<3){
System.out.println("Too Small");
}
else if(bag_ounces>10){
System.out.println("Too Large");
}
else{
bag_ounces*=6;
System.out.println(bag_ounces+" seconds");
}
}
}
Answer:
A - Activity
Explanation:
UML contains multiple subdivisions of diagrams which allow you to visualize what the software will do, while activity diagrams demonstrate the process of what happens in the system being modeled. This is why UML uses the activity diagram to model the flow of procedure.
A way to make the metro system more sustainable is to use machine learning so as to optimize the frequency of train routes using passenger load.
<h3>What is a sustainable transport system?</h3>
This sustainable transport system is known to be a kind of system that aids the basic access and growth needs of the society to be met rightly and safely.
This also should be meant in a way that is consistent with human and ecosystem health, and boast equity in all successive generations.
Other methods are the use of Cooling System to lower temperature and non waste of Energy and also lower the Noise Levels.
learn more about Sustainability from
brainly.com/question/25032305
Answer:
a: Twisted pair won't span a 400-foot distance.
Explanation:
The maximum distance that twisted pair cables can support without attenuation is 100 meters which is approximately 328 feet and the two office buildings are 400 feet apart, so it is useless to install a twisted pair cable for such a large distance. A much better option would be to install optic fiber. Though it is a bit expensive but it is the best option in this case.
Hence option (a) is the correct reason for installing an optic fiber cable rather than a twisted pair cable.
In procedure oriented program many important data items are placed as global so that they can access by all the functions. Each function may have its own local data. Global data are more vulnerable to an inadvertent change by a function.