FindArena > Find Arena > Webmaster

Thread Tools Display Modes
  #1 ()
novaexate : When I try to check out it asks for a credit card number but I don't know if it will allow a gift card... Any help?

  Reply With Quote
  #2 ()
liamnigousnum : yes but

The problem with prepaid and gifts and debits are holds if your order is $50 and you have a $50 card the hold will take the $50 and unless it is release by the time your order is ready to ship which 99% of the time it is not the card will be rejected for the sale. You need 2 times the purchase amount. Also most online site do not accept prepaid or gift cards at all
  Reply With Quote
  #3 ()
ForexSignals : PROBLEM: A program is required for calculating the number of days, hours, minutes or seconds between two given dates. the program should accept two dates from the user aw well as the option of whether the number od days, minutes or seconds should be output.

(a) In table form, list the inputs, outputs and processing necessary to provide a solution for the above problem.

(b) Write MODULAR (use functions) pseudo-code to solve the above problem.

(c) Draw a flow chart for the solution

(d) Explain why the solution which uses function may not be considered more robust than one that does not.
  Reply With Quote
  #4 ()
lizatteda : you need a method that knows the rules for leap years, and if the year is a leap year, set February to 29 days, not 28

you need an array of numbers of days in months

in the starting month, the number of remaining days is the value from the table less the starting day of the month

then add up the days until you get to the month before the ending month
then add the remaining number of days in the next month

then handle the HH:MM:SS difference by converting time to secondsSinceMidnight for both the beginning and ending dates
  Reply With Quote
  #5 ()
suskorast : I generally like daSVgrouch answers. I would in this case add that if the teacher has not mentioned leap year then it is not involved in the calculation.

I would point out that the daSVgrouch answer is code centric and the question is not asking for any code, but rather the process by which the solution might be written (pseudo-code)
  Reply With Quote
  #6 ()
Miketymn : I have a java program that I had working perfectly, but somehow, overtime it started to fail. I'm really not sure how and I'm not sure why, so I'm hoping a new pair of eyes will help solve the problem. Please help, thanks! The program is a simple "poker" code that outputs 5 random cards from the deck.

The Program:

import java.Random.*;
import java.util.*;

public class Poker2 {

public static void main(String[] args) {

//initialize variables
int suits = suit.length;
int ranks = rank.length;
int n = suits * ranks;
int m = 5;

// create a deck of 52 cards
String[] suit = { "Clubs", "Diamonds", "Hearts", "Spades" };
String[] rank = { "2", "3", "4", "5", "6", "7", "8", "9", "10",
"Jack", "Queen", "King", "Ace"

// initialize deck
String[] deck = new String[n];
for (int i = 0; i < ranks; i++)
for (int j = 0; j < suits; j++)
deck[suits*i + j] = rank[i] + " of " + suit[j];

// create random 5 cards
for (int i = 0; i < m; i++) {
int r = i + (int) (Math.random() * (n-i));
String t = deck[r];
deck[r] = deck[i];
deck[i] = t;

// print results
for (int i = 0; i < m; i++)

  Reply With Quote
  #7 ()
marleroker : I don't see any blatant errors. My suggestion would be to plug in numbers for your variables to see if one of them is what is causing it. Also, print out the variables to make sure they are getting the numbers you want them to get.
Good luck!
  Reply With Quote
  #8 ()
browadonha : Hi,

I think that

int suits = suit.length;
int ranks = rank.length;
int n = suits * ranks;

Should be declared after

// create a deck of 52 cards
String[] suit = { "Clubs", "Diamonds", "Hearts", "Spades" };
String[] rank = { "2", "3", "4", "5", "6", "7", "8", "9", "10",
"Jack", "Queen", "King", "Ace"
  Reply With Quote
  #9 ()
PeamsweaKskep : I need a software for my software company to manage codes for all projects,Quickly!! ^_^
I found somethings but I don't Know which is better...Code Box , Qsnipps and etc

For more details I should add:
support Java and C++
Install and work in Linux or Windows (or both)
with a share-able DB on local network
Safe and Secure
easy to learn and use
easy to search and find codes(search by name or features)
  Reply With Quote
  #10 ()
srfecti644 : I have windows 8 and i would like to download java for my laptop, i would like to know were can i download it from , can i have a link please!
  Reply With Quote