Answer:
Hi there! The question is checking your knowledge on Pseudocode. Pseudocode is a high level solution written in plain English to outline the steps needed for the program to work correctly. An implementation for the different parts of the question is written below.
Explanation:
1. Determine the area of a triangle
declare formula for area calculation of triangle as ½ * (base * height)
validate input parameters “base” and “height”
apply formula and return result
2. Compute the interest earned Prompt user for input 2
declare formula for interest calculation as annual interest rate * term * starting account balance
validate input parameters “interest_rate” and “starting_account_balance ”
apply formula and return result as final balance at the end of the year as the interest earned + starting balance.
3. Determine the flying time between two cities given the mileage M between them and the average speed of the airplane.
declare formula for time calculation of triangle as time = distance / speed
validate input parameters for mileage “M” and speed “S”
apply formula and return result
Solution:
The definition of a function max that has three int parameters and returns the largest is given bellow:
def max(x,y,z):
if (x>z and x>y):
return (x)
elif (y>x and y>z):
return y
else:
return z
Thus this is required right answer.
Answer:
C++ Program to Find Area and Circumference of a Circle
Area of Circle = PI X Radius X Radius. Where, Where PI is a constant which is equal to 22/7 or 3.141(approx)
Circumference or Circle = 2 X PI X Radius.
Circumference or Circle = PI X Diameter.
Explanation:
Answer:
The first argument listed after IF
Explanation:
When the two variables are listed next to each other, Excel will find and calculate the correlation between them.