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) End Sub Pls help me... i cant sleep because of this problem.

Member Avatar
Member Avatar
+0 forum 6

Just a couple of number tricks to check Go's mathematical abilities. If you have more, let's show them here.

Member Avatar
Member Avatar
+2 forum 1

Hi, I want to Count the number of occurences of data in a table, then multiply it in a value from other table, After that I want to sum up the product of count and the value from other table, As of now, I cant count and then multiple but I cant Sum them Up. This is my SQL code: SELECT orderline.product_id, COUNT(orderline.product_id) AS counted, products.orig_price, (COUNT(orderline.product_id)*products.orig_price) AS product FROM orderline INNER JOIN products ON products.product_id = orderline.product_id GROUP BY orderline.product_id This will return: product_id | counted | orig_price | product| 1 | 4 | 2 | 8 | 2 …

Member Avatar
Member Avatar
+0 forum 1

I was doing the class tutorial to have matrix multiplication from two dimensional arrays: X (3x2) and Y (2x3). package t7; public class Q5 { public static void main(String[] args) { int[][] matrix_X = new int [3][2]; int[][] matrix_Y = new int [2][3]; int[][] result = new int [3][3]; for (int i=0; i<matrix_X.length; i++) { for(int j=0; j<matrix_X[i].length; j++) { matrix_X[i][j] = (int)(Math.random() * 100); matrix_Y[i][j] = (int)(Math.random() * 100); } } System.out.println("Matrix X is:"); printMatrix(matrix_X); System.out.println("Matrix Y is:"); printMatrix(matrix_Y); result = multiplyMatrix(matrix_X, matrix_Y); } public static void printMatrix(int[][] m) { for (int i=0; i<m.length; i++) { for (int j=0; …

Member Avatar
Member Avatar
+0 forum 2

Good Day. Call me Angel. I'm havng trouble with **Live Edit Table**. Appears not to be working for me. I have this system. A small rental system actually, that would save the details for the rented properties. Here's the actual table: <img src="https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xpa1/t1.0-9/10314749_882248248457445_2787632760191268129_n.jpg"> (other columns are trimmed) The admin has to fill the information needed to display the details of the property into a table. Then the database would post all the said details except for the No. of Rented Property/ies column. (must be empty at first until a client came for tenancy) That is when the column No.ofRentedProperty must …

Member Avatar
Member Avatar
+0 forum 2

Optimizing Matrix Multiplication One time consuming task is multiplying large matrices. In this post we'll look at ways to improve the speed of this process. We'll be using a square matrix, but with simple modifications the code can be adapted to any type of matrix. The straight forward way to multiply a matrix is: [code]for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { for (int k = 0; k < N; k++) { C[i,j] += A[i,k] * B[k,j]; } } }[/code] Now it's not important to us in which …

Member Avatar
Member Avatar
+7 forum 11

hello python developers, i recently started working on a simple xml rpc application, the simple version is completly working but when i wanted to extend it and add some more functionality i ran into some troubles. i want to register functions from different classes as server methods, i thought i could use server.register_instance() for that purpose unfortanatly i was mistaken. [CODE] class MyFunc: def divide(self,x,y): return x // y class MyFunc2: def multiply(self,x,y): return x * y server.register_instance(MyFunc()) server.register_instance(MyFunc2()) [/CODE] this is part of the code which i thought would do the job, now when i list all my server …

Member Avatar
Member Avatar
+0 forum 1

I am a new to assembly and i am asked to multiply two 3x3 matrices and then show the given result. I am having problem in multiplication as mov al,5 mov bl,6 imul bl but how to print it?? i know the result will be in ax register but i cannot print it out. Please tell me the correct answer tat what should i do????

Member Avatar
Member Avatar
+0 forum 2

Hello i am new to assembly please help me i want to write a program in Linux assembly which can multiply and divide real binary and hexa decimal numbers(e.g 11010.11001 & A56.B5). . Please help me as soon as possible i will have to submit the assignment by tuesday please help me if u have code please submit it here pleaseeeee :) Thanks in Advance :)

Member Avatar
Member Avatar
-1 forum 1

Hello, I am delving into OOP now and am having issues with creating properties. Below is my code. Basically what I did is created a custom class and am creating a property within that class. But what happens is it will put a red squiggly under 'Multiply' saying 'not all code paths return a value'. I've tried looking up this but not really finding the answer anywhere. I did try following an example but it still won't work. Not sure what I'm doing wrong. I appreciate any help. public class Arithmetic { private string x { get; set; } public …

Member Avatar
Member Avatar
+0 forum 4

Hi frnds, I am developing a struts2 project, I do require how to multiply to variable using struts tag ... I tried with this code below, <s:set var="total" value="var1" /> <s:set var="tot" value="%{var2 * #attr.total}"></s:set> <s:property value="%{'' + #attr.total}"/> AM getting the output as 0.0 .. Please any help ...

Member Avatar
Member Avatar
+0 forum 1

Hi I'm been trying to enter numbers into the <input> so I can calculate **Add** - **Subtract** - **Divide** - **Multiply**. This is the equations: <?php $number = 20; $number += 10; print "\$number += 10;<br /> The answer is <b>$number</b>. <br /><br />"; $number -= 12; print "\$number -= 12;<br /> The answer is <b>$number</b>. <br /><br />"; $number *= 14; print "\$number *= 14;<br /> The answer is <b>$number</b>. <br /><br />"; $number%= 16; print "\$number %= 16;<br /> The answer is <b>$number</b>. <br /><br />"; ?> This is my **form**: <html> <body> <form action="number.php" method="get"> Enter number: …

Member Avatar
Member Avatar
+0 forum 8

how to multiply two integers when one of the integers is user-input ?

Member Avatar
Member Avatar
+0 forum 2

Hi All Im trying to get this to work, but can only get it to work without putting the form tags in, and wont work with more than one set of the inputs. the below is the result when i use ajax to search for item names, then want to caluculate the quantity * length (for total quantity), then total quantity * rrp_exc. the result should show in the the total field. It works, but not if the form tags are in and if there are multiple rows of the below inputs, eg, when there is more than one item …

Member Avatar
Member Avatar
+0 forum 3

Dear All, I'm new to C, and would appreciate your help about the below code. The purpose of the program is to multiply the elements of the array and print the result. The user enters the value for how many elements he wants to have multiplied, and then the function should calculate. For example, if the user enters 3, the result should be 1*2*3=6. For 4, the result should be 1*2*3*4=24. But, when I run the program, I always get very big and false numbers. [CODE]#include <stdio.h> int multiply_array_elements(const int ar1[], int n, int multiplication); int main(void) { const int …

Member Avatar
Member Avatar
+0 forum 3

Hi. I'm trying to multiply fractions. How can I take '1 1/2' and multiply it to get 3? (is there some special format like '1-1/2' that I need to use to multiply it?) Thanks

Member Avatar
Member Avatar
+0 forum 3

The End.