You are given two variables , already declared and assigned values , one of type double , named price, containing the price of an order, and the other of type int , named totalNumber, containing the number of orders. Write an expression that calculates the total price for all orders.

LANGUAGE: JAVA

CHALLENGE:
You are given two variables , already declared and assigned values , one of type double , named price, containing the price of an order, and the other of type int , named totalNumber, containing the number of orders. Write an expression that calculates the total price for all orders.

SOLUTION:

LANGUAGE: JAVA

CHALLENGE:
You are given two variables , already declared and assigned values , one of type double , named price, containing the price of an order, and the other of type int , named totalNumber, containing the number of orders. Write an expression that calculates the total price for all orders.

SOLUTION:

price * totalNumber