I have written a javascript function for analyzing the biggest drop in an array. But one little issue is still there. As the max value, I always get max value from my hole array and not from my drop. Example: Array: [100,90,80,120] The biggest drop...

I am working on some calculations. By user input, calculations should take place and build a table with data. My first array, calcTable is working as intended, each row however, represents a month. In my final table, I want a row to represent a year....

Let me be brief. I'm trying to calculate alert((Math.pow(7,35))%71) but it gives me 61, when the result must be 70. What's wrong?...

I'm exercising in javascript and i've made this script in order to calculate the sum of 2 variables and then use this sum in a third equation! any thoughts on how to make this work will be very useful! <form name="Calcultor" Met...

I have the long value bits declared like so: long bits = len*8L; (304) System.out.println(bits); This outputs as 304 If I use the long name bits like so I get 0 & 0 respectively. System.out.println(bits>>(4*8)); System.out.println(0xFF&...

I'm currently trying to calculate the percentage off -- or difference in percent between two prices on a web store. I also need to be able to loop through all items on the page that have the same classname applied. Inside the class name div ther...

I have the coordinates of 2 points A1 (x1,y1) and A2 (x2,y2) and a distance d. I need to find the coordinates of point A3 that is the distance d from point A2 on the linear graph defined by A1 and A2. How can i do that with JavaScript? similar to htt...

I have a table with measurement - width and height (attached image). The red row is the width and the yellow column is the height. For width 400 and height 700 the price is 1025. The max width is 600, and the max height is 900. I did it with selects,...

Very much a newbie here with Javascript and in programing in general. I'd appreciate any help or guidance you can provide. I'm working on a side project to pull data from a rest API and display it in a an html table. Here is the function f...

I am getting an error when trying to calculate a number that uses a number from a previous calculation. 1st Calculation: Ending Depth - Starting Depth = Footage. 2nd Calculation: Footage / Rate of Penetration = Expected Hours to Drill. T...

©2020 All rights reserved.