Answer:
1. You can invoke or call a method from another program or method: TRUE
2. When methods must share data, you can pass the data into and return the data out of methods: TRUE
3. A method could be called using any numeric value as an argument, whether it is a variable, a named constant, or a literal constant: TRUE
Explanation:
So here is the code in Python:
n = 0.00 #this is a float because there are some numbers that are decimals.
while n < 20: #n which is 0.00 and while it is lower than 20 if runs the code below
n = n + 1 #it will add 1 to n everything it runs the code.
k = n / 2 #it will divide whatever n is everytime by 2
print(str(n) + '/2: ') # it's printing the number it's on
print(k) # prints the answer for the n.
You can change n to add by any, make n any num instead of 0.00 and you can change the while condition from n < 20 to any other logical statement. If you want to get creative you can take 2 inputs for numbers and make one of them the starting number and other one is the ending number. Also make sure to make n a number lower than you starting point because if you set n as your starting point then it will skip it.
Answer:
A wave of sound!
Explanation:
sound waves are sound but sound comes in different wavelengths
a = int(input("Class A tickets sold: "))
b = int(input("Class B tickets sold: "))
c = int(input("Class C tickets sold: "))
print("Total income generated: $"+str((a*20)+(b*15)+(c*10)))
I hope this helps!