Think of one of your Math homework. How can you use program to reveal the answer? Write a calculation program with atleast ten(10) variable statements calculating a problem.. Your program should include: Variables for each part of problem. See example below: Eg. $apple = 10, $orange = 15, $discount = 0.2 <!DOCTYPE html> <html> <body> <?php $apple = 10; $orange = 15; $discount = 0.2; echo ($apple + $orange) * $discount; ?> </body> </html>

Question

Think of one of your Math homework. How can you use program to reveal the answer? Write a calculation program with atleast ten(10) variable statements calculating a problem..

Your program should include:

  • Variables for each part of problem. See example below:

Eg. $apple = 10, $orange = 15, $discount = 0.2

<!DOCTYPE html>

<html>

<body>

<?php

$apple = 10;

$orange = 15;

$discount = 0.2;

echo ($apple + $orange) * $discount;

?>

</body>

</html>

Expert Answer

Want to see the step-by-step answer?

See Answer

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

See Answer
*Response times vary by subject and question complexity. Median response time is 34 minutes and may be longer for new subjects.

Related Computer Science Q&A

Find answers to questions asked by student like you
Show more Q&A

Q: Python 3.7.4: Write a loop that reads positive integers from standard input and that terminates when...

A: Following is the program code that takes input from the user all positive integer and terminates if ...

Q: A transitive dependency is equivalent to which of the following?A) A functional dependency between t...

A: Transitive dependencyA transitive dependency in a database is an indirect relationship between value...

Q: Which of the following diagrams do not contradict the current state of our knowledge about the compl...

A: P class problems can be solved in deterministic polynomial time. NP class can be verified in the pol...

Q: How do I code this on python heres the problem  Use the Design Recipe to define a function count_val...

A: Programming instructions: Define the function count_value which takes the list and a value as an arg...

Q: Write a loop that sets each array element to the sum of itself and the next element, except for the ...

A: Completing the given C++ program so, that it can follow the given rubrics:Firstly, displaying a mess...

Q: (check all that are necessary) Which Oracle server parameters do you need to know in order toset up ...

A: Oracle server parameters required for the client to connect to the server are:Host name or the IP ad...

Q: this is for python

A: Program descriptionTwo lists are created one is a 3 x 3 list and the other 4 x 4 to demonstrate the ...

Q: Using the data file capabilities of C++, create a Personnel file, personnel.dat on your drive and th...

A: Program Instructions:Use do-while loop to repeatedly present the menu.Use switch statement to opt di...

Q: Do research and write a brief report on the impact of mobile advertising on sales and marketing

A: Impact of mobile advertising on sales:A form of advertising through mobile phones is known as mobile...