Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started