- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 1
9 Posted Topics
Hello there! :) How should i solve for x in this equation: p*e^-x + q*sin(x) + r*cos(x) + s*tan(x) + t*x^2 + u = 0 with the user to input the values of p,q,r,s,t and u. i'm thinking of looping from 0.0001 until i-dont-know-what and then testing each value of …
hi there [B]how do i determine the average Number of Queue Items that leave the queue (example: processes leaving the ready queue in order to be Running in the CPU) per second?[/B] i need this value to calculate for the average waiting time. the formula is: w = n/X where …
Hey there :) :) :) I'm doing a "simulation" project for the first-come, first-served (FCFS) CPU scheduling algorithm. To give u an idea of what this is: CPU Scheduling is all about having a Scheduler determine which process should be allocated to the CPU next. It has many various algorithms …
yap, you should put a loop inside the convertIntegerToWords(int numWord) so that it will loop "for each character" in the numWord. [CODE] String numString = ""+numWord; String output = ""; for (char numChar: numString.toCharArray() ){ switch (numChar){ case '0': output += "ZERO "; break; case '1': output += "ONE "; …
hello there :) i'll be joining a programming competition next week.. so wish me luck :3 anyways, during the eliminations in our school which i won, this PERFECT NUMBER problem came out. and here was my solution: [code] import java.util.Scanner; public class Perfect { public static void main(String[] args) { …
i'm thinking something like: 1. scan the whole array for 9's. use two nested loops. 2. if u find a 9, increment all nearby squares by 1 (but do not increment those containing a 9). and be aware that you have to detect if you are currently scanning the TOP-most, …
Hi, ^^ I'll be competing for a java programming contest next week and one of the instructions is to "Receive input from the console window (of JCreator)." Thus, programs shouldn't involve any GUI. I've found this very useful tool called Scanner in the java.util package. My self-training was going smoothly …
yep yep! "=" (single equal sign) is an Assignment operator. "==" (double equal sign) is a Conditional operator. [CODE] if (fromCircus = true) fromCircus = false; if (fromCircus = false) fromCircus = true; [/CODE] Using "=" instead of "==" in the if condition is a common programming error :p And …
hi there, I'm currently searching for a possible topic for my thesis/final project in my course, ComSci. i have decided to limit my scope on applications related to nature and the environment (not business management apps, specially ;p). For now, i am taking a keen interest on applications related to …
The End.
deviliq