# define a function for calculating
# the area of a shapes
def calculate_area(name):
# converting all characters
# into lower cases
name = name.lower()
# check for the conditions
if name == "rectangle":
l = int(input("Enter rectangle's length: "))
b = int(input("Enter rectangle's breadth: "))
# calculate area of rectangle
rec area = l * b
print(f"The area of rectangle is: rec area")
elif name == "square":
s = int(input("Enter square's side length: "))
#calculate area of square
sqt_area = s * s
print(f"The area of square is
{sqt_area}.")
elif name == "triangle":
h = int(input("Enter triangle's height length: "))
b = int(input("Enter triangle's breadth length: "))
# calculate area of triangle
tri_area = 0.5 * b * h
print(f"The area of triangle is
{tri_area}.")
elif name == "circle":
r = int(input("Enter circle's radius length: "))
pi = 3.14
# calculate area of circle
circ_area = pi * r * r
print(f"The area of circle is
{circ_area}.")
elif name == 'parallelogram':
b = int(input("Enter parallelogram's base length: "))
h = int(input("Enter parallelogram's height length: "))
# calculate area of parallelogram
para_area = b * h
print(f"The area of parallelogram is
{para_area}.")
else:
print("Sorry! This shape is not available")
# driver code
if __name__ == "__main__" :
print("Calculate Shape Area")
shape_name = input("Enter the name of shape whose area you want to find: ")
# function calling
calculate_area(shape_name)
Output:
Calculate Shape Area
Enter the name of shape whose area you want to find: rectangle
Enter rectangle's length: 20
Enter rectangle's breadth: 15
The area of rectangle is 300.
What is code?
In computing, source code, is any collection of code, with or without comments, written in a human-readable programming language. The source code of a programme is specially designed to aid the work of computer programmers, who write source code to specify the actions to be performed by a computer.
To learn more about code
https://brainly.com/question/26134656
#SPJ9
Question 7 of 10
is a rate that charges interest on the interest that accumulates on debt.
O A. Simple interest
OB. Variable interest
O C. Principal interest
OD. Compound interest
SUBMIT
Compound interest is a rate that charges interest on the interest that accumulates on debt.
What is an interest?
Interest is the payment of an amount above the principal sum by a borrower or deposit-taking financial institution to a lender or depositor at a specific rate. It differs from a fee that the borrower may pay to the lender or a third party. It is also distinct from a dividend, which is paid by a company to its shareholders (owners) from its profit as well as reserve, but not at a fixed rate, but rather on a pro rate basis as a share of the reward gained by risk-taking entrepreneurs when revenue exceeds total costs.
When interest is compounded on the principal amount invested as well as borrowed, the interest rate is applied to the new (larger) principal. It's essentially interest on interest, which leads to exponential growth over time.
So, D is the right answer.
To learn more about interest
https://brainly.com/question/16134508
#SPJ9
I would like to create crossword puzzles in Java. Two 4X4 and two 6X6 puzzles. How do I go about it?
One of the ways to create crossword puzzles in Java using GUI is given below:
The Programimport java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Random;
The program is attached in the file below as the profanity counter is rejecting the code here, so I cannot post it here.
Read more about java programming here:
https://brainly.com/question/18554491
#SPJ1
write a statement that retrieves the image stored at index 0 from an imagelist control named slideshowimagelist and displays it in a picturebox control named slideshowpicturebox.
The statement that retrieves the image stored at index 0 from an image list control named slideshowimagelist and displays it in a picturebox control named slideshowpicturebox are:
{
slideshowPictureBox.Image = slideShowImageList.Images [0];
}
What is picturebox?
The PictureBox control is used to display photos on a Windows Form. The PictureBox control provides an image property that allows the user to set the image at runtime or design time. It acts as a container control, uses memory to hold the picture, and allows for image manipulation in the picture box. It also has an auto size property but no stretch feature.
To learn more about picturebox
https://brainly.com/question/27064099
#SPJ4
So I'm doing a coding project again and I have to recreate a website I'm having difficulty getting my website to look like the one I'm recreating I have put a screenshot of the website I need I recreate and a picture of the code I have so far
HTML and CSS tutorials
Explanation:
Search for website tuturials
The US Centers for Disease Control and Prevention (CDC) said in a statement on October 22 local time that the director of the agency, Wollensky, tested positive for COVID-19 on the evening of the 21st and had mild symptoms. Wolenski has been vaccinated with the latest COVID-19 vaccine, and is currently isolated at home and will participate in the meeting online.
The director of the Centers for Disease Control and Prevention and the administrator of the Agency for Toxic Substances and Disease Registry, Rochelle Paula Walensky, is an American physician and scientist.
How long after taking Covid may you test positive?
You might continue to test positively for a while after receiving a positive test result. After your initial positive result, you can test positive for antigens for a few weeks. NAAT results can remain positive for up to 90 days.
CDC works around-the-clock to safeguard America from threats to its health, safety, and security, both domestically and abroad.
The CDC battles disease whether it originates domestically or overseas, whether it is acute or chronic, curable or preventable, caused by human error or malicious attack and encourages residents and communities to do the same.
To learn more about Covid-19 refer to:
https://brainly.com/question/28347122
#SPJ1
Answer:
Explanation:
Answer:
The director of the Centers for Disease Control and Prevention and the administrator of the Agency for Toxic Substances and Disease Registry, Rochelle Paula Walensky, is an American physician and scientist.
What is Covid-19?Different people are affected by COVID-19 in various ways. The majority of infected individuals will experience mild to moderate sickness and recover without being hospitalized.
Most typical signs:
fever \scough \stiredness
loss of scent or taste.
Less frequent signs:
throat infection headache aches and discomfort
diarrhea, a skin rash, discoloration of the fingers or toes, or red or itchy eyes.
To learn more about covid-19 refer to the:
https://brainly.in/question/49728785
#SPJ1
Discuss in brief the major of components of computer network?
The major components required to install software are computer network components. NIC, switch, cable, hub, router, and modem are all important network components. Some network components can be removed depending on the type of network that needs to be installed. A wireless network, for example, does not require a cable.
The following are the major components needed to set up a network:
1)NIC: NIC is an abbreviation for network interface card. A network interface card (NIC) is a piece of hardware that connects one computer to another on a network. It has a transfer rate range of 10,100 to 1000 Mb/s.
2)Hub: A hub is a piece of hardware that divides a network connection among multiple devices. When a computer requests information from a network, it first sends the request via cable to the Hub. This request will be broadcast to the entire network by Hub.
3)Switch:A switch is a piece of hardware that connects multiple devices on a computer network. A Switch has more sophisticated features than a Hub.
4)Router: A router is a piece of hardware that connects a local area network (LAN) to the internet. It receives, analyses, and forwards incoming packets to another network. A router operates on the OSI Reference Model's Layer 3. A router routes a packet based on the information in the routing table.
5)Modem: A modem is a piece of hardware that allows a computer to connect to the internet via an existing telephone line. A modem is not built into the motherboard; rather, it is installed in a PCI slot on the motherboard.
6)Cables: A cable is a type of signal transmission medium.
What is computer network?
A computer network is a group of computers that share resources on or provided by network nodes.
To learn more about computer network
https://brainly.com/question/1167985
#SPJ9
Write a program to display the s
tandard/deviation of 100 sets of numbers already stored in an array
import random
import statistics
number = [1, 2, 3, 4, 5]
print("Standart deviation is: ", statistics.stdev(number))
Please edit the array before compiling the code.