Answer:
Answered below
Explanation:
//Program is written in Python programming //language.
number_of_trees = int(input ("Enter number of trees purchased: "))
height_of_trees = float(input("Enter height of trees: "))
delivery_status = input("Do you want trees delivered? enter yes or no ")
price_of_two_meters = 20
total_price = number_of_trees * price_of_two_meters
//Invoice
print (number_of_trees)
print(height_of_trees)
print (total_price)
print (delivery_status)
Images would probably be the best choice here
Answer:
The answers are explained below
Explanation:
1) Identify the potential classes in this problem domain be list all the nouns
class Customer
class Acco unt
2) Refine the list to include only the necessary class names for this problem
the class customer is not necessary to solve the problem itself, therefore the only class could be the account class
3) Identify the responsibilities of the class or classes.
The responsibilities of the class account will be
* determination of the type of account--> Acc ount . type(char)
* deposit money into the account --> Acc ount . de posit(float)
* withdraw money into the account --> Acc ount . with draw(float)
* show balance of the account --> Acc ount . bal ance()
* generate interest --> Acc ount . int erest()
Please join the words together. I used spaces due to regulations
Answer:
The algorithm for switching off the electric water heater automatically when the temperature rises to 70 o Celsius is given below.
Explanation:
Let use python code for this question.
we will use if statement to check the condition if the temperature is greater than 70.
When the temperature is 70, then the algorithm will send signal to hardware to turn yourself off.
if(temperature==70):
print("send_turn_off_signal")