They use and perform a set of actions and programs that build on each other.
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:
b. instantiated.
Explanation:
In computer programming, to be instatiated or when variables are instatiated; this simply refers to the acts of making example out of a group variables or a form of template. For example in a situation of class of objects.
Hence, in this case, the correct answer to the question above is the option B, in which Variables set equal to patterns are said to be INSTATIATED
Answer:
A
Explanation:
Becuase i picked that and i git it right
Answer:
see explaination
Explanation:
The following code is in python 3.5 and above:
# Create a main method
def main():
# Accept name from the user
name = input("Enter your name: ")
# Accept describe yourself from the user.
describe = input("Describe yourself: ")
# Create a file object
f = open('person.html','w')
# Creat a string to store the html script.
message = """<html>
<head>
</head>
<body>
<center>
<h1>"""+name+"""</h1>
</center>
<hr/>"""+describe+"""<hr/>
</body>
</html>"""
f.write(message)
f.close()
main()