Answer:
The description for the given question is described in the explanation section below.
Explanation:
a...
interface Shape
{
public double getArea(); // creating a function
public double getPerimeter(); // creating a function
}
b and c...
- I preferred Interface although abstract classes are being used when children's classes associate certain aspect methods and variables and because all classes represent a certain method throughout the specific solution, not instance variables, it would be easier to construct an interface.
- Almost all of the period interfaces are favored because they have multiple inheritance capabilities.
di = {"student":"10/30/1984", "student2":"11/16/2020"}
name = input("What is your name? ")
if name in di:
print(di[name])
else:
print("Your name is not in the dictionary.")
You can change the values inside the dictionary. I hope this helps!
Answer:
$340
Explanation:
you have to multiply $400 bu 85% to get $340