Answer:
class Phone(object):
def __init__(self, model, partNumber, retailPrice):
self.model = model
self.part_number = partNumber
self.retail_price = retailPrice
def phone_specs(self):
print( "Phone model: {}\nPart number: {}\nRetail price: {}".format( self.model, self.part_number, self.retail_price))
phone1 = Phone("Nokia", "asd234", 200.0)
phone1.phone_specs()
Explanation:
A class is a blueprint of a data structure used to create objects of the same data types and methods. The Phone class is an object that creates an instance of the phone1 object. The phone_specs method is used to display the details of the phone1 object.
I don’t know if this supports all, but try lenntech, duckters, and I will add on later
Answer:
PCI uses a 32-bit or 64-bit parallel bus.
Answer:
speed = float(input("Enter the speed: "))
hours = int(input("Enter the hours: "))
distance = 0
for i in range(hours):
distance += speed * 1
print("The distance after " + str(i+1) + ". hour(s): " + str(distance))
Explanation:
*The code is in Python.
Ask the user to enter the speed and the hours
Initialize the distance as 0
Create a for loop that iterates hours times. Inside the loop, calculate the cumulative distance traveled at the end of each hour and print it (Note that the distance = speed x hour)