This is false. Therapeutic services are some of the most expensive.
Answer:
product_name = input("Enter product name : ")
if product_name=="pen"or"book"or"box"or"pencil"or"eraser":
if product_name == "pen":
amount = 10
print(f"Product Name: {product_name}\nCost: {amount} rupees")
if product_name == "book":
amount = 100
print(f"Product Name: {product_name}\nCost: {amount} rupees")
if product_name == "box":
amount = 150
print(f"Product Name: {product_name}\nCost: {amount} rupees")
if product_name == "pencil":
amount = 5
print(f"Product Name: {product_name}\nCost: {amount} rupees")
if product_name == "eraser":
amount = 8
print(f"Product Name: {product_name}\nCost: {amount} rupees")
else:
print("Item not found!")
Explanation:
The python program is a code of nested if-statements that compares the input string to five items of the first if-statement. For every item found, its code block is executed.
Answer:
double x = 2.5;
double y = -1.5;
int m = 18;
int n = 4;
string s = "Storm";
string t = "Watch";
The output of the expression "x + n*y - (x+n)*y" is "6.25".
and the output of expression "m/n + m%n" is "6".
Explanation:
for the first expression,
x + n*y - (x+n)*y ,put value of every variables in it.
=2.5+4*(-1.5)-(2.5+4)*(-1.5)
=2.5-6.0-(6.5*(-1.5)
=-3.5+9.75
=6.25
for the second expression,
m/n + m%n, put value of every variables in it.
=18/4 +18%4
=4+2 ("/ will give quotient and % will give remainder")
=6
<em>A.)</em>
<em>It's either A or D both of them stand out and make sense to me so I think that it'll be right if you choose A or D.</em>
<em>-Ɽ3₮Ɽ0 Ⱬ3Ɽ0</em>