You are part of the Web development Team, currently designing a Web site for A company called Nkwali Yenkosi that designs and sells leather clothing and accessories. The Web site is made up of 5 Web pages (Home, About the leather, DIY Methods, Brick & Mortar and Shop Now). You are responsible for creating the Shop Now Web page and 2 Web pages
connecting to it.
Create a class which stores name, roll number and total marks for a student.Input the data for a student and display it.
wants to buy a necklace in which
1. There is a minimum of 1 pearl and maximum of X pearls, such that each pearl
has its own magnificent coefficient.
2. The pearls should be in non-decreasing order of their magnificence power
You are given the maximum number of pearls in a necklace and the range of the magnificent coefficients of the pearls Find the number of necklaces that can be made that follow the mentioned conditions
Input Specificatione
input1: Maximum number of pearls that can be used to form the necklace
input2: Starting magniliomt coefficient of pearls
input3: Ending magnificent coefficient of pearls
Output Specification
Retum the number of necklace options possible as per given conditions
Add two polynomials: Given two polynomials A and B, write a program that adds the given two polynomials A and B.
input: output:0
4
0 5
1 0
2 10
3 6
4
0 -5
1 0
2 -10
3 -6
class PriceChecker():
def __init__(self):
self.levelsList = []
self.currentPrice = 0.0
self.BitmexClient = bitmex.bitmex(test=False)
@property
def levelsList(self):
return self.__levelsList
@levelsList.setter
def levelsList(self, newValue):
self.__levelsList = newValue
@property
def currentPrice(self):
...
@currentPrice.setter
def currentPrice(self, newValue):
...
# Function: Display the Bitcoin price in the menu item – to assist the user when setting price levels
def updateMenuPrice(self):
# Get the latest Bitcoin info (as a Tick object) from getBitMexPrice(). Name it tickObj.
tickObj = self.getBitMexPrice()
# Update the currentPrice property with the Bitcoin price in tickObj.
. . .
@property
def currentPrice(self):
. . . # Return the value of __currentPrice
@currentPrice.setter
def currentPrice(self, newValue):
. . . # Set the value of __currentPrice