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?

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!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Science

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: WHAT IS CRYPTOCURRENCY AND EXPLAIN THE CRYPTOCURRENCY?

A: Cryptocurrency:Cryptocurrency refers to a digital asset that is derived for working as a medium of e...

Q: In Python use the Design Recipe to write a function,  count_odds, that consumes a list and two integ...

A: Program Instructions:Write the function header and type contrast of the program.Write description an...

Q: consider the udp header 12 03 00 0F 00 1E A3 10.What is the total length of the udp

A: The UPD header basically has 4 parts, each part is of 2 bytes. That means following interpretation o...

Q: What are the mantissa and exponent values if 6.75 is represented in 8 bit binary floating point repr...

A: Calculating the mantissa and exponent of 6.75 with 8-bit binary floating-point representation.Firstl...

Q: Write a Java program that prompts the user to enter an integer and reports whether the integer is a ...

A: Create a class with name Check_pal, and initialize a global variable number of class methods.Create ...

Q: First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ...

A: Launch the NetBeans IDE.

Q: Beacon frames in the frequency hopping spread spectrum variant of 802.11 contain the dwell time. Do ...

A: NO,  as we know the Bluetooth frame has dwell time of 625p sec for basic data rate in the frame its ...

Q: Assume each bank branch can issue loan independently of other branches and assumecustomers may joint...

A: Option “B” is the correct functional dependency for the given table “Loans”.

Q: Suppose you have two tables: EMPLOYEE and EMPLOYEE_1. The EMPLOYEE table contains the records for th...

A: Two tables are given named as EMPLOYEE and EMPLOYEE1. Each table has its records. EMPLOYEE table has...

Q: 3prep Write a Python program for an online MoonBucks coffee order. Coffee is sold by the pound, and ...

A: Program AlgorithmDeclare the required variables and take the input from the user for the pound’s use...

Q: Explain pipelining and think of a real-world analogy to the concept as if you were explaining it to ...

A: Pipelining:Pipelining is the technique of dividing a sequential process into sub-processes, each sub...

Q: Create a new file (in Dev C++)  In Lab 2, you created a menu for a simple calculator program. In Lab...

A: Program AlgorithmDeclare the required variables and write a welcome message before starting the menu...

Q: In python I have  N unique coupons that are included in boxes of the cereal being sold. A consumer w...

A: All the lines included after the #(hash) are python comments.To print the N unique coupons:for loop ...

Q: Create a program that prompts the user for an amount less than 100 and then displays the minimum num...

A: As you have not specified the programming language, we solved this question using python programming...

Q: Write a simplified expression for the Boolean function defined by each of the following Kmaps.

A: a)Identify only 1’s in the kmap group.Find the largest group of 1’s, group can have either 2,4 or 8....

Q: Preffered language is java. Will be compiled with intellij Problem 1 consists of multiple parts. You...

A: Since there are multiple questions and you have not specified which part needs to be answered, we ha...

Q: An uppercase character is a character whose ASCII value is between 65(A) and 90(Z). Write a C++ prog...

A: Following is the c++ program:For loop is used to from 0 to length of string to read every character ...

Q: What is the typical size of the security staff in a small organization? A medium-sized organization?...

A: Answer:Size of security staff in a small organization:The size of the security staff in a small-size...

Q: So the programming language for this problem is python.  How do I create a function that allows the ...

A: In this python program, The user is asked to enter an array of integers. First index of this array r...

Q: Write a program that will present the user with a main menu of options which the user can choose fro...

A: Program:import java.util.Scanner;public class Main {publicstaticvoid main(String[] args) {char user_...

Q: Question 4: What does the following code output? vector icecream ( 10, "Vanilla" ); icecream.insert...

A: The complete source code for the given question is given below along with the output.Note: If the he...

Q: Question 3

A: Writing the program code in java as in the given question no programming language is specified.This ...

Q: Hi, I have to display the first 20 Fibonacci numbers to the console. The first two numbers are given...

A: The following is the source code that will generate the first 20 Fibonacci numbers and prints the su...

Q: In MS Access, to ensure that a grade must be either A, B, C, D or F, whichvalidation rule should be ...

A: Microsoft (MS) AccessMicrosoft access is a database management system from Microsoft that combines r...

Q: First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ...

A: The name of the program is CharCounter.inputEntry is a string type variable and used for storing use...

Q: 3) Write friend function for the following class to overload the &lt;&lt; and &gt;&gt; operators. Th...

A: Create a class called Math.Declare the prototype of the input friend function with input stream(istr...

Q: Suppose you want to build a program using WebGL that draws two kinds of objects - shiny billiard bal...

A: Drawing multiple objects in WebGLIn order to draw two kinds of objects in WebGL, first call function...

Q: Hello! I am new to Java and have nearly finished up a project involving a mortgage table, and everyt...

A: According to the question, students need only in output spacing.To display output in proper spacing ...

Q: I am getting stuck on the code to see if its a factor or not. Im not sure where I went wrong.

A: The following is the source code which prints whether a number is a factor of generated random numbe...

Q: You are asked to write a simple C program that will accept an integer value in the range of 5-95 wit...

A: Each functionality defined in relatively small number of functions to one function that can be reuse...

Q: this is for python

A: Python program to display a diagonal tableThe variables and functions used to solve this problem inc...

Q: b. The birthday paradox asks how many people should be in a room so that the chances are better than...

A: There are 365 days in a year so there is 365 day’s birthday.Probability for the same birthday is p(s...

Q: Discuss key areas of concern for risk management. How is risk management important in the developmen...

A: Risk management-Risk management is an identification, evaluation and prioritization of risks in orde...

Q: How can we check if a table has minimum redundency?A) There is no way to checkB) See if a table has ...

A: Data redundancy:File replication occurs in the database when one or more copies of file are present ...

Q: Python 3.7.4 The current calendar, called the Gregorian calendar, was introduced in 1582. Every year...

A: The following is the source code which takes the input from the user and tells whether the input yea...

Q: What is out put?

A: Output:Output is the value produced on the system based on the input supplied by the user.

Q: Given a nested list named NxN_table that represents a table with N rows and N columns, print each el...

A: Following Variables and functions has been used to solve this diagonal problem:Variables: N, i, tabl...

Q: MIPS assembly language please help    Write a program for a grocery store to calculate the total cha...

A: Some definitions required to know before doing this program: -1.What is Mars?2.What is MIPS?3.What i...

Q: Computer Science Question

A: Note: As per the guidelines Q1 with three sub-parts can be answered. Re-post the question for the so...

Q: One of the inital versions of the rules for an MLFQ scheduler was: “Rule 1: If Priority(A)&gt;Priori...

A: This problem is referred to as Starvation or Indefinite Blocking.Starvation: Starvation is the condi...

Q: First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ...

A: Java program to calculate the average of numbers entered by the user and display the results is give...

Q: A double-ended queue or deque is a generalization of a stack and a queue that supports adding and re...

A: Program descriptionThe answer for part-1 cannot be attempted as interface and skeleton has not been ...

Q: Discuss the roles of information in globalisation of business

A: Globalization of business:People, organization and governments are integrated or interacted word wid...

Q: Using C++ 11 Create a class called Complex for performing arithmetic with complex numbers. Write a p...

A: This program demonstrates the complex numbers for performing arithmetic.Program://Header file sectio...

Q: Replace any alphabetic character with '_' in 2-character string passCode. Ex: If passCode is "9a", o...

A: program to replace first 2-character by ‘_’ from the passcode.isapha() function is used for finding ...

Q: What are whole disk encryption (WDE) solutions and under what circumstances are they required?

A: DefinitionWhole Disk Encryption (WDE) solutions, basically plays the foremost role in the field of c...

Q: Create a project called Mileage. In it, create a class Car with the following properties. A car has ...

A: To Create a project called Mileage. In it, create a class Car with the following properties. A car h...

Q: I need help with this C++ problem.    Assume that a binary search function is searching for a value ...

A: Binary search: - It is a technique used to search an element in a sorted array.It is also known as h...

Q: WHAT IS BLOCKCHAIN?

A: DefinitionBlockchain is a novel technology of today’s era. Blockchain is basically a growing list of...

Q: Vectors Write a for loop to print all NUM_VALS elements of vector courseGrades, following each with ...

A:  Note: As the user given index value is constant and so the value of index could not be changed whil...