Answer:
b.used is 2, b.data[0] is 4, b.data[1] is 6
Explanation:
bag b;
b.insert(5); // b has 5
b.insert(4); // b has 5,4
b.insert(6); // b has 5,4,6
b.erase_one(5); // now 5 is removed , b has 4,6
so no:of elements b.used is 2
b[0]=4;
b[1]=6;
Answer:
A foundation plays three major roles in the construction of a structure. A good and strong foundation keeps the building standing while the forces of nature wreak havoc. Well-built foundations keep the occupants of the building safe during calamities such as earthquake, floods, strong winds etc.
Answer:
class Pet():
def __init__(self, name, age, weight, animal_type, breed):
self.name = name
self.age = age
self.weight = weight
slef.aT = animal_type
self.breed = breed
def set_name(self, name):
self.name = name
def get_name(self):
return self.name
def set_age(self, age):
self.age = age
def get_age(self):
return self.age
def set_weight(self, weight):
self.weight = weight
def get_weight(self):
return self.weight
def set_Type(self, type):
self.aT = type
def get_Type(self):
return self.aT
def set_breed(self, breed):
self.breed = breed
def get_breed(self):
return self.breed
def toString(self):
print(f"The pet {self.name} is {self.age} year old and weighs {self.weight}lbs. The pet is a {self.breed} breed of {self.aT}.")
Explanation:
The python program defines a class called Pet that has five features namely name, age, weight, animal_type, and breed of the animal. The set and get methods of the class are the mutators and accessor respectively. The final method of the class is the 'toString' method that prints the summary of the Pet object instance.
An important criterion for evaluating the effectiveness of a graphic organizer is B. How well it conveys information. The number of words, color and the number of pages are just secondary compared to B. Google Earth showed the image of terrains and location to know more about the Egyptian pyramids