Hi Guys,
I am relatively new to scripting at the moment and am struggling to get the following function to work. For some reason it does not recognise the arithmatic symbol when i select option1. Any help would be greatly appreciated.
Code:
menu ()
{
echo "=============="
echo "Calculator"
echo "=============="
echo "1. Divide"
echo "2.
In my bash script i am trying to using the equals (=) operator as input for an IF statement, can this be done?
echo "Plese enter an operator as shown in the brackets (-)subtract, (*)Multiply, (+)Add, (/)divide, quit(=)?"
read operator
..........
if [[ $operator == '=' ]]; then
'do something'
fi
How to add, subtract, multiply and divide 2 different numbers from 2 different form. Pls help me. The code i think is way too simple example: (Result.text = result) (Text1.text = number from form2)(Text2,text = Number from form3). the code i think is like this and this one is not working:
Public Sub Command1_Clicked()
Result.text = Val(Text1.Text) + Val(Text2.text)
Hey guys I'm new but trying to figure something out, I'm teaching myself the basic's of Shell Scripting, and decided a Calculator of sorts is as good a place as any to start, However what I want to do is after each case statement to return you to the Original Question "Select Add...." is there a command to do this?
I would guess its a form of flagging the start point and referencing it
so i'm have been stifled here inn my attempts at this.
i need to calculate an unusual figure.
what is the percentage difference between 400 and 3?
usually, to get the percentage, you just divide the smaller number by the bigger number. then multiply the answer by 100.
in this case however, 3 divided 400 gives a 0.0075. that means nothing to me. how can i get the real percentage of this?
thisoldman wrote:You have to insert a manual page break before changing the page style.Excerpt from Help: Page NumbersTo Apply a Manually Inserted Page Style Change1. Click at the start of the first paragraph on the page where a different page style will be applied.2. Choose Insert - Manual Break. You see the Insert Break dialog.3. In the Style list box, select a page style.
Can anyone assit me in completing this simple looping problem
allow the user to enter as many number as they want by using a loop. The program will keep asking the user for additional numbers until the user enters 9999. Once the user enters 9999, exit the loop and display a message telling them which number they entered was the largest of all of their entries.
I want to use some preexisting Android code for a calculator and I just want to add functionality to it, any suggestions? I would want basic operations defined such plus minis multiply divide cosine sin tan etc.
I need it to be able to import the project into eclipse preferably something more advanced than touch calculator. If it needs thirds party p plugins into eclipse please state such.
I have to write a program in bash and I understand logically how to do it I just cant get in into code. The problem is this "Write a program called "multiply" to get two numbers from the user and calculate the first number times the second number and show the result.
You are only allowed to use loop and addition operator(+).