Answer:
I am writing the Python program. Let me know if you want the program in some other programming language. Here is the Python code:
class Student(object):
def __init__(a,score=10):
a.score=score
def add_score(a,score):
a.score += 10
return (score)
def decrease_score(a,score):
a.score -=10
return (score)
def __str__(a):
current_score="{}".format(a.score)
return current_score
Explanation:
The program has a Student() class with attribute score.
It has the following methods:
__init__(): This method works as a constructor and enables to initialize score attribute of Student class. The value of score is initialized to 10. I have used a as the instance of Student class. However self keyword can also be used as an instance of the object to access the attributes and methods of Student class.
add_score() This method is used to add 10 to the score.
decrease_score() This method is used to decrease the score by 10.
__str__() This method is used to return the current score. format() is used here to return a string. current_score holds the value of the current score.
If you want the check the working of the program, then you can use the following statements to see the results on the output screen:
p = Student()
print(p)
p.add_score(p)
print(p)
This will create an object p of Student class and calls the above methods to display the values of the score according to the methods.
The program along with its output is attached.
Answer: CSS
Explanation:
Its helps in the designing of the structures that HTML would have created.
Janice can actually used both knowledge as an advantage. She can use her background in farming while learning more about medicine. In such a way, she can have a strong advantage in medicinal farming - like learn ways to create good and effective drugs from plants, etc.
Answer:
Out of the four options , the option that is most suitable is
option b. Cost, demand
<u>cost</u> or to <u>demand</u>
Explanation:
Going rate pricing is a form of competition based pricing. This pricing is commonly used for homogeneous products i.e., products with very minute distinction or variation among producers.
This type of pricing is based on setting price on the basis of the prevailing market trends in pricing of goods or services, so, the prices are largely based on the competition in the market rather than considering its own cost and demand.
<span>The answer is highlight cells, select the Insert tab, click on the number, select Date from the category box, highlight the correct format, and click OK.</span>