![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Nov 2004
Posts: 541
|
![]() I've got an assignment to hand in tommorow for my software solutions module and I havn't started it
![]() It's nothing more than loops and if/else statements and won't be more than 70 lines! You'll be paid via PayPal $30 ![]() ![]() If you're interested post below and I'll paste the spec |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Nov 2004
Posts: 541
|
bump
easy money for a quickie ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: May 2004
Location: San Diego, CA
Posts: 1,007
|
Lazy bastard!
I'll do it for $100 though ![]()
__________________
I like ducks. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | ||
Confirmed User
Join Date: Nov 2004
Posts: 541
|
Quote:
Quote:
I'm a Python programmer so it'll take me 10mins to do ![]() |
||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Nov 2004
Location: U.S.
Posts: 541
|
Let me see the specs ...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Nov 2004
Posts: 541
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Nov 2004
Location: U.S.
Posts: 541
|
I don't think it will take 10 min to do it... Do you have the formula for the day of the week and time?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | ||
Confirmed User
Join Date: Nov 2004
Posts: 541
|
Quote:
It's a simple prog and this is the marking criteria: Quote:
![]() |
||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Nov 2004
Location: U.S.
Posts: 541
|
I made a program before :
Input: Birthdate >>> Output : day of a Week you were born and Time (in DOS) I think the formula will help you... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Nov 2004
Posts: 541
|
It's the C syntax I have to get used to that I don't have time for tonight.
I think it'll work like this: 1) User inputs day via letter eg. M for monday, T for tuesday etc. 2) User inputs start time in 24hr format eg. 13:20 3) User inputs end time in 24hr format eg. 13:34 4) Program calculates cost based upon table for discounts 5) Displays total cost, the day and call length 6) Asks whether to loop, if so then back to step1 7) Calculates total summary analysis with no# of calls and total call durations and total cost of all calls 8) Finished ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: May 2004
Location: San Diego, CA
Posts: 1,007
|
Certainly not hard, but still an hour or two if you want it to be pretty.
You are right though, in Python or Ruby it would be a lot quicker ![]() Really not worth it for 30 bucks though, seriously.
__________________
I like ducks. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Apr 2002
Location: Canada
Posts: 198
|
Hit me up on icq I may know someone who would be willing to do it for you...
__________________
- Danny ICQ# 9770313 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Join Date: Nov 2004
Posts: 541
|
OK, if it'll cost more then I'll drive over to my classmate tonight and steal his code
![]() Thank god its not supposed to be in ASM ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Join Date: Nov 2004
Location: U.S.
Posts: 541
|
Check this out ... just add a function for total calls , how much and how many min ...
http://www.informatics.susx.ac.uk/co...solution2.html Note : Calling Time may vary in the computer you are using ... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Join Date: Apr 2002
Location: Canada
Posts: 198
|
Still waiting to hear from you. Got bored and got it finished for you already... icq 9770313
__________________
- Danny ICQ# 9770313 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Registered User
Join Date: Aug 2003
Posts: 39
|
Code:
#include <stdio.h> #include <stdlib.h> int starting_min; int ending_min; int min; char d; int mpm; int hour_cost(){ int cost; int weekend; int discount; if(mpmhahahaha0){ // first minute cost=150; }else if(mpm<3){ // 2nd or 3rd minute cost=0; }else{ cost=30; } mpm++; // apply discounts weekend = (dhahahaha'a' || dhahahaha'S'); if(weekend){ discount=60; }else{ if(min<8*60)discount=40; else if(min<=18*60)discount=0; else discount=40; } cost=cost-cost*discount/100; return cost; } int main(){ char d; int m,h,m2,h2; int cost; while(scanf("%c %d:%d %d:%d",&d,&h,&m,&h2,&m2)){ starting_min = h*60+m; ending_min = h2*60+m2; printf("%d - %d\n",starting_min,ending_min); mpm=0;cost=0; for(min=starting_min;min<ending_min;min++){ cost+=hour_cost(min); } printf("%.2f\n",(float)cost/100); } return EXIT_SUCCESS; } Try this out. I don't have much time, so i did only quick tests. It took me 17 minutes, btw ;)) ![]() ![]() ![]() hit me up if you need any help. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Registered User
Join Date: Aug 2003
Posts: 39
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 | |
Confirmed User
Join Date: Feb 2003
Posts: 6,040
|
Quote:
If anyone needs any php, javascript, or other programming done I highly recommend you write down Romans ICQ number right now. His prices are great and his work is top notch. ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
Confirmed User
Join Date: Nov 2004
Location: U.S.
Posts: 541
|
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 | ||
Confirmed User
Join Date: Nov 2004
Posts: 541
|
Quote:
![]() In fact had my ICQ been working, you were just the person I would have contacted since I saw your ICQ number when logging into Chokertraffic admin page! ![]() All I need now is to add some comments to the code and do the proper documentation (pseudo code, Jackson Structure Diagrams, test plans, etc.) and I'm done! If you want the $$ then reply with your PayPal address ![]() Quote:
|
||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 | |
Confirmed User
Join Date: Nov 2004
Posts: 541
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#22 |
Confirmed User
Join Date: Nov 2004
Location: U.S.
Posts: 541
|
![]() Good for you man !
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#23 | |
Confirmed User
Join Date: Nov 2004
Posts: 541
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#24 | |
Registered User
Join Date: Aug 2003
Posts: 39
|
Quote:
Sorry, i don't have PayPal account, only epassporte. The task was interested, so i did it for fun. romans |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#25 | |
Confirmed User
Join Date: Nov 2004
Posts: 541
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |