Answer:
If a museum charges different prices based on the day of the week and age of the visitor. The pricing rules are shown below.
- On Tuesday and Thursday children 10 and under get in free ($ 0).
- For all other days and ages the cost is ten dollars ($ 10).
The code in python is;
if (day == 'Tuesday' or day == 'Thursday') and age <= 10:
price = 0
else:
price = 10
Explanation:
The logic of the algorithm suggests that that the conditional if-statement assigns zero to the price variable if the day variable is either Tuesday or Thursday and the child's age is 10 or below but assigns 10 to the price variable if the condition is not met.
Answer:
Your phone.
Explanation:
Samsung is ran off of Android.
Apple is ran off of IOS.
Both are operating systems.
Answer:
Following are the code to this question:
public class M//defining class M
{
public static void main(String[] as)//defining main method
{
int i,j;//defining integer variable
for (i= 1; i <=10; i++)//defining for loop for print column
{
for (j = 1; j<=15; j++)//defining for loop for print rows
{
System.out.print("#");//print # value
}
System.out.println();//print space
}
}
}
Output:
###############
###############
###############
###############
###############
###############
###############
###############
###############
###############
Explanation:
The code defines a class "M" and the main method is defined within a class and two integer variables I and j" are defined within the primary procedure, while the next step defines two for a loop.
In the first loop, the column value is printed, and a further loop that prints the row value is declared inside the loop.
Answer:
I'm guessing C
Explanation:
It just makes the most sense to me, but please don't be really confident with it, I'm in 6th grade. I'm really sorry if I'm incorrect.
Because it is a liable source for business.