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
Answer:
The output to the given question is "1565.683 85.7800 123.98".
Explanation:
In the given C++ program there are three variable is defined that is x,y, and z.To print the value of the variable we use the setprecision() function. we use the setprecision() function. It is also known as manipulator setprecision() function. This function used to control the number of digits and display the number of a floating-point value. The setprecision() function work only with the "<iomanip>" header file.
The answer is (a) Uses plain English to allow personnel from different agencies to work together.
ICS or Incident Command System is a systematic tool used for the control, command, and coordination of emergency response. To work together, the ICS allows the use of common terminology and operating procedures.
Answer:
Explanation:
price = eval(input("price of item: "))
quantity = eval(input("quantity of item: "))
sales_tax = 0.08 # 8% sales tax
total_cost = price*quantity
total_cost_with_tax = total_cost + total_cost*sales_tax
print("total cost: "+str(total_cost))
print("total cost + 8% sales tax: "+str(total_cost_with_tax))