User Profile

Collapse

Profile Sidebar

Collapse
Van Dugall
Van Dugall
Last Activity: Apr 8 '10, 06:05 PM
Joined: Mar 18 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Van Dugall
    replied to Incremental number skipping
    in Java
    this is what I have so far.. but I'm having trouble excluding numbers that end in seven...:(

    Code:
    public class Seven {
    	public static void main(String[] args){
    		int num;
    		for(num = 1; num < 101; num++){
    			
    			if(num != 0 && num%7 == 0){
    				continue;
    			}
    			System.out.println(""+num);
    		}
    	  }
    }
    Regards,...
    See more | Go to post

    Leave a comment:


  • Van Dugall
    replied to Incremental number skipping
    in Java
    Not yet... I am thinking about how to do this. I was thinking about doing a while from 1 to 100 and using if statements (mod 7 == 0) to handle the multples of 7 but how should I handle the numbers that end with 7? Also, what is the best way to skip a number when you are incrementing??

    Regards,,
    V. Dugall
    See more | Go to post

    Leave a comment:


  • Van Dugall
    started a topic Incremental number skipping
    in Java

    Incremental number skipping

    Hi,

    I want to write a program to print all numbers from 1 to 100 except those that end in 7 or are a multiple of 7. So the program should skip printing the numbers 7, 14, 17, 21, 27, etc. This might be easy but I want to know an efficient way to do this any ideas??

    Thanks,
    Van Dugall
    See more | Go to post

  • Van Dugall
    started a topic Requesting data from php in javascript question
    in PHP

    Requesting data from php in javascript question

    Hello I have been writing a game in javascript which works fine but I wanted to step it up and request the data of the game from the server. I haven't really used php...all I know is from the Internet and I couldn't really find the answer I was looking for. I asked around and they said this is really easy to implement but I still can't get it to work.

    My problem is it doesn't work for some reason... I think I'm not calling the url...
    See more | Go to post

  • Van Dugall
    started a topic Implementing a forwarding web cache
    in C

    Implementing a forwarding web cache

    What can do to make this client file into a Forward Web Cache -- for static contents, usng the if-modified approach for coherence... I'm not that comfortable with C but it is the only language I know how to make a connect between to terminals. I was thinking using a hash table and each key is a linked list to store
    but I confused about how to parse the strings and even test if my cache even works??

    This is the client file:...
    See more | Go to post

  • Van Dugall
    started a topic Help with writing algorithm

    Help with writing algorithm

    I writing a economic statistics program..

    I need to allocate billions of dollars and I
    have been shown projects to consider and ith project estimates
    its cost to be dollars and claims to generate jobs.

    So I have B billions of dollars
    n projects
    ci dollars
    Ji jobs
    I guess I have one objective function and one constraint.

    ...
    See more | Go to post
No activity results to display
Show More
Working...