<h2>Solution :</h2>
The given problem is solved in Python.
def ComputeSquare():
side = float(input('Enter the side of the square: '))
if side > 0:
perimeter = 4 * side
area = side * side
print('Perimeter of the square is:',
perimeter, 'unit.')
print('Area of the square is:', area, 'square unit.')
<h3> else:</h3>
print('Invalid input.')
ComputeSquare()
<h2>Explanation :-</h2>
- In this program, we create a function ComputeSquare() to calculate the perimeter and area of a square.
- The function asks the user to enter the side of the square. The side is then stored in a variable.
- Now, we check whether the side is greater than 0 or not using if-else statement.
- If the condition is true, the perimeter and area is calculated which is displayed using print() statement.
- If the condition is false, the else blocks executes printing the error message.
<h3>Refer to the attachment for output.</h3>
Its B i think hope this helps !
Answer:
Midi Synthesizer, Mic,Boom Mic, Laptop
Explanation:
At the end of the day a keyboard and a pc is all you need as the keyboard alone can cover nearly any instrument.
Answer:
Option B; 30 SECONDS OR LESS.
Explanation:
Short-term memory, also known as primary or active memory, is the information we are currently aware of or thinking about.
When short-term memories are not rehearsed or actively maintained, they last mere seconds.
Most of the information kept in short-term memory will be stored for less than 30 seconds (approximately 20 to 30 seconds), but it can be just seconds if rehearsal or active maintenance of the information is not done.
Therefore, Anita likely will be able to retain the information in short-term memory, without additional processing, for 30 SECONDS OR LESS.
Answer:
I don't know, Brainly says im an expert but i dont think so