Answer:
i dont know anything about them only that the bear is the ducks son and the duck is the fox mom.
Explanation:
Answer:
The output is: Your cost is 100
Explanation:
Given
The above code snippet
and
Required
Determine the output of the code
if cost < 70 or cost > 150
The above condition checks if cost is less than 70 or cost is greater than 150
This condition is false because 100 is neither less than 70 nor is it greater than 150
So, the else statement will be executed.
discount = cost
Which means
discount = 100
So, the print instruction will print: Your cost is 100
Answer:
The correct code to this question can be de4fined as follows:
double power;
power = Math.pow(base, exp);
Explanation:
In the given question the choices were missing, that's why we defined the correct code only.
- In the given code a two double variable "base and exp" is declared, that input the value from the user-side, and store its value into there respective variables.
- In the next step, "power", that is a double variable is declared, which uses the "Math.pow" function that calculates given values power and prints its value.
please find the attachment of the full code.