Question: A) Write an assignment statement that will store the result of multiplying two variable, PRICE and DISCOUNT, into a third variable, SAVING. B) Write an

A) Write an assignment statement that will store the result of multiplying two variable, PRICE and DISCOUNT, into a third variable, SAVING.
B) Write an assignment statement that will divide the value in TOTAL by the value in COUNT and store the result in MEAN.
C) Write an if-statement that will compare the value in PRICE against the value in BUDGET. If PRICE is greater than BUDGET, then print the message Too expensive; otherwise print the message Just right.
D) modify your answer to the previous exercise so that the message includes the value of your budget if the price is too high.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!