Input refers to the unprocessed data fed into a computer.
Answer:
Pseudo CODE
a)
n= Input “Enter 5 integer values”
b)
sum=0.0
For loop with i ranging from 0 to 5
Inside loop sum=n[i]+sum
Outside loop avg=sum/5
Print avg
c)
small=n[0] # assume initial number is the smallest
large=n[0] # assume initial number is the largest
For loop with i ranging from 0 to 5
Inside loop if n[i]<small # check if current number is smaller than small
Inside if Then small=n[i]
Inside loop if n[i]>large # check if current number is larger than large
Inside if then large=n[i]
Print small
Print large
d)
print avg
print small
print large
Refer to the explanation provided. In the online shopping software system, five actors can be identified: A Customer can perform actions such as exploring products and seeking product information. The interface allows for the creation of customer accounts facilitating purchases. Additionally, customers can browse items by using search categories or keywords, and they are able to order and make payments for their selected products. The payment system accepts two primary methods: credit card and PayPal. A Seller can list products in appropriate categories and create accounts to gain membership. An Administrator manages product listings and can modify existing categories or introduce new ones. Finally, the Site Manager has the capability to view different reports regarding customer orders, seller-added products, and user-created accounts.
Answer:
MOD
Explanation:
The MOD audio file format is primarily designed to represent musical content. It employs the.MOD file extension and is notably recognized as background music in various independent video games. It can be said that MOD audio file types are among the most widely used trackers in numerous computer games and demos.
Response:
Refer to the explanation
Details:
class Taxicab():
def __init__(self, x, y):
self.x_coordinate = x
self.y_coordinate = y
self.odometer = 0
def get_x_coord(self):
return self.x_coordinate
def get_y_coord(self):
return self.y_coordinate
def get_odometer(self):
return self.odometer
def move_x(self, distance):
self.x_coordinate += distance
# increase the odometer with the absolute distance
self.odometer += abs(distance)
def move_y(self, distance):
self.y_coordinate += distance
# increase odometer with the absolute distance
self.odometer += abs(distance)
cab = Taxicab(5,-8)
cab.move_x(3)
cab.move_y(-4)
cab.move_x(-1)
print(cab.odometer) # will output 8 3+4+1 = 8