Answer:
Following are the correct python code to this question:
n1 = float(input('Input first number: '))#input first number
n2 = float(input('Input second number: '))#input second number
n3 = float(input('Input third number: '))#input third number
n4 = float(input('Input fourth number: '))#input fourth number
average = (n1+n2+n3+n4)/4 #calculate input number average
product = n1*n2*n3*n4 # calculate input number product
print('product: {:.0f} average: {:.0f}'.format(round(product),round(average))) #print product and average using round function
print('product: {:.3f} average: {:.3f}'.format(product,average)) #print product and average value
Output:
Please find the attachment.
Explanation:
The description of the above python code can be defined as follows:
- In the above python program four variable "n1, n2, n3, and n4" is defined, in which we take input from the user end, and in these user inputs we use the float method, that converts all the input value in to float value.
- In the next step, two variable average and product are defined, that calculate all input numbers product, average, and hold value in its variable.
- In the last line, the print method is used, which prints its variable value by using a round and format method.
The principle or element of layout design is highlighted in an event poster in option i: The headline.
<h3>What are the elements of page layout?</h3>
The poster is known to be one that often uses a kind of hierarchy and centered text alignment as its element.
Note that it is one whose Lines of use is said to be made up of different kinds of type styles, sizes and others.
The simple elements of an advertising poster is made up of:
1. The headline.
2. The sub-head.
3. The body copy.
4. The caption.
The elements of page layout are visual hierarchy, visual flow, and others. Hence, the principle or element of layout design is highlighted in an event poster in option i: The headline.
Learn more about layout design from
brainly.com/question/2501083
#SPJ1
Answer:
Cache is the fastest and most expensive, RAM is slower and less expensive, and virtual memory is the slowest and least expensive type.
Explanation:
Answer:
The complete program is as follows:
def convert_distance(miles):
km = miles * 1.6 # approximately 1.6 km in 1 mile
return km
my_trip_miles = 55
# 2) Convert my_trip_miles to kilometers by calling the function above
my_trip_km =convert_distance(my_trip_miles) #3) Fill in the blank to print the result of the conversion
# 4) Calculate the round-trip in kilometers by doubling the result,
print("The distance in kilometers is " +str(my_trip_km))
# and fill in the blank to print the result
print("The round-trip in kilometers is " + str(my_trip_km * 2))
Explanation:
<em>The program is self-explanatory because I used the same comments in the original question.</em>