View Full Version : Help for a little project
kosovarbre
12-02-2009, 12:24 PM
Hi
I need to help me for a little programming in java
I need to code a program which simulation coin box.
The application communicates with user to be given the opportunity to fill account with euro cent and to click the wanted number.The number can be local number, mobil or international
If the number has prefix 038 or 028 or 029 and has 6 figures after the prefix.If not have prefix and have 6 figures this is for local number.
If the number has prefix 044 or 045 or 043 or 049 and has 6 figures after the prefix, this is for mobil number
If the number has prefix + or 99 and have minimum 9 figures after the prefix, this is for internacional number.
The credit pour any second and in console should posted the remaining cent.
Prices is:
Call in local number much 5 euro cent for minute
Call in mobil number much 10 euro cent for minute
Call in internacional number much 20 euro cent for minute.
10 seconds before the call is completed, users should be given the opportunity to replenish the account.
If user want to replenish, conversation continues, if no the conversation end.And in the end we need to tell the users how money he has spent and how is the conevrsation time in format hh:mi:ss
Who can help me to create this and to post complete code thanks very much
shyam
12-02-2009, 04:16 PM
Who can help me to create this and to post complete code thanks very much
no one is going to finish your homework for you...if you have trouble completing it or are stuck at some point the forum members will be glad to help
kosovarbre
12-02-2009, 07:04 PM
no one is going to finish your homework for you...if you have trouble completing it or are stuck at some point the forum members will be glad to help
I not use this forum only for my homework, but i'm joined here before 2 days and now i'm actic here and i believe i can help users here for webdesign and IT support.
But i need bro to complete this, please who can help me for this :)
tonynoname123
12-02-2009, 07:49 PM
Well, I can't really help you, but I know that sounds like an "if else" type script you need. You know, if 044-555-1234 then preform specific action, if else, or other number, different action...
tonynoname123
12-02-2009, 07:50 PM
did you mean addict here, or active here?
oh well, it doesn't really matter anyway
Old Pedant
12-02-2009, 09:46 PM
Look here:
http://www.codingforums.com/rules.htm
Read rule 1.5
Now, come back after you have at least *tried* to make something work.
kosovarbre
12-02-2009, 10:28 PM
I say i'm here now active, to help others and to learn something that i don't know.
Please, please i not post here my homework, and this is a project that i need to complete, i promise this is the only what i search here to help me.The others time i visit here only to be a good member and to help others, with all what i know in webdesign, design, IT, Hacking [sql, RFI, exploit] etc...
Please who can help me for this to post here complete code for this project, this project is not for share it for bussines.
Thanks
Old Pedant
12-02-2009, 11:46 PM
But you show us NOTHING to get started from.
Is this to be a console application? Or will it use a graphical interface? If it's graphical, then what will you use for the GUI framework? SWING? Or what?
You need to understand that the basic coding here--the algorithm you need to use--is so simple that it sounds like a first year homework assignment. That part is easy.
It is the *presentation* that could be very difficult, and it's the presentation that we can give you very little help with when you don't give us more information.
Here's the basic logic:
String phonenumber = ...get a line of text ...
... remove all non-digits except "+" from that line ... (or give an error if illegal characters???)
int perminuteCost = 0;
if ( the length of the phonenumber == 9 )
{
String prefix = phonenumber.substring(0,3);
if ( prefix.equals("038") || prefix.equals("028") || prefix.equals("029") )
{
perminuteCost = 5; // local
} else if ( prefix.equals("044") || prefix.equals("045") || prefix.equals("043") || prefix.equals("049") )
{
perminuteCost = 10; // mobile
}
} else {
if ( phonenumber.substring(0,1).equals("+") || phonenumber.substring(0,2).equals("99") {
perminuteCost = 20; // international
}
}
if ( perminuteCost == 0 )
{
... invalid phone number ...
... what will you do ?? ...
}
... continue with valid phone number
...
But that's just the bare bones, the basic logic. You still have to have a way for people to enter coins (simulated or not), you still have to use a timer that "wakes up" every so often to show the elapsed time, how much money is left, etc.
You are asking us to write an complete application for you with very very little to go on. And it could take somebody hours...certainly at least an hours or so...only to find out it's not what you need.
And you still have not convinced me this isn't homework. It's just too simple to be a "real world" problem.
oracleguy
12-03-2009, 12:36 AM
Please who can help me for this to post here complete code for this project, this project is not for share it for bussines.
So this isn't a homework assignment but a program you need for a business? That doesn't help your case. No one is going to just give you a complete program for free.
We are here to help you learn, not do all the work for you.
kosovarbre
12-03-2009, 07:11 PM
I post here who want to help me and who know to write the code
I think this is a little project and don't spent time
Who help me for this, I can sell for it something : Webhosting of my company, Php mailer for use it for spam, cc valide or another what he want.
Please i need for it thanks
tonynoname123
12-03-2009, 07:52 PM
I really disapprove oh the attitude of the moderators in CF.
(rule 1.1)
Old Pedant
12-03-2009, 08:59 PM
I think that what Oracle Guy was trying to say is: If you are going to get paid for doing this project, then you should "share the wealth" with those who actually do the work for you.
Now, I do a lot of volunteer work for non-profit groups, so I'm not making any money on things I ask for help with. And if that's the case for Kosovarbre then he needs to say so.
It's fine to ask for a help getting through a problem area, but asking somebody to write your entire application for you is...well, presumptuous. His offer to trade for this work, though, seems like a good idea. If I had the time, and the need for what he is offering, I might take him up on it.
kosovarbre
12-03-2009, 11:48 PM
This is a small project, but i don't know to code in java i'm learning.
Who can post here, i promise that i seel to he something thaht i post in before post.
Thanks
mmcnitt
12-04-2009, 04:57 AM
I don't think you understand, we are more than glad to help you, however we aren't going to write it for you. Search the Java API if you need to, but really don't post here unless you have a code written that you hit a roadblock on.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.