Answer:
The problem in the following snippet is that the function "cost" returns the void and it cannot used as the expression in the print statement
Explanation:
public class Test
{
public static void main(String[] args)
{
System.out.println(cost(10, 4));
}
public static void cost(int price, int reps)
{
for (int i = 0; i < reps; i++)
{
System.out.print(price);
}
}
}
Output:
Main.java:4: error: 'void' type not allowed here
System.out.println(cost(10, 4));
^
1 error
In the following code the void type is not allowed in the function "cost".
Answer: Kapilvastu was named after Vedic sage Kapilamuni
9x because you can add 3x+3x+3x because they are the same and can be added
1. Every region doesnt get the same amount of sunlight as the rest due to whether or location an example would be that a region with alot of rain could have clouds that wouldnt let the solar panels to absorb as much sunlight as a more dry and sunny place
2 wind farms can be used to store energy for a power outage and a way to lower the cost of electricity to a farmer
3 using hydro energy requires people to build a dam that pours the water over a mill that rotates and stores energy from it
4 a type of waste created by nuclear power plants would be daily uses that have radiation such as plastic containers ,gloves , disposable overalls, boots or just plain radioactive waste.
5 would be the total mass of organisms in a given area or volume
6 is a process to further limit carbon dioxide emissions from burning coal
7 is basically the means to tap into energy savings that over time become an asset
8 turning down the water heater thermostat and turning off lights when not in use can save energy
9 smart grids use timing grid to determine how long you use electricity for and for how much you used