Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / HELP! Assignment coursework!

Author
Message
outer heaven
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: london, england
Posted: 6th Feb 2006 14:34
Okay i know its kinda lame posting my assignment online. but basically i SERIOUSLY need help. my assignments due in 2 days and ive been cooped up with all my other assignments and havnt been able to get around to this one.
for my course i chose DB as a programming language and basically we have to make a pizza ordering system.

basicaly, i have 3 types of pizzas, 1. supreme ($5), 2. best($3) and 3. regular($1.50).
what i need to do is create a program that allows a "sales assistant" to input which pizza a customer has requested, then apply a formula.
Fixed charge + area (in square metres) x $30

i am not asking for sorce code (but would be helpful). all i am asking is to point me in the right direction into achieving this.

thanks

tricks evolve... spots change... trends fade... skateboarding is forever.
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 6th Feb 2006 15:41
Visual basic would have been a better choice - 2 days?!! argh! good luck to you - that's all I can say...

...maybe one day I'll finish a project
x1bwork
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 6th Feb 2006 15:59 Edited at: 6th Feb 2006 15:59
dims & data. ill see what I can do when I get home from work. about 9 hours.
outer heaven
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: london, england
Posted: 6th Feb 2006 16:36
thanks guys for tryin to help me out. its much appreciated.

rokafella

tricks evolve... spots change... trends fade... skateboarding is forever.
Computer Nerd
20
Years of Service
User Offline
Joined: 25th Jan 2005
Location: What do you care?
Posted: 6th Feb 2006 17:26
maybe i can help ya:



For input you can have the inkey$() command and use a do/loop



You can get text on screen by

Print "Text, text text"

I hope you do good.

Programming is fun with DarkBASIC!
UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 6th Feb 2006 23:04 Edited at: 6th Feb 2006 23:06
Visual basic would be a better choice for this(although I am guilty of saying this in a DB forum ). Here is some pseudo code(since I don't believe in doing other people's work for them).



Just use the DB help for how to use the commands.

Edit:

lol, the adds at the bottom of the screen was for take out (Not any more )


Hippopotomonstrosesquippedaliophobia-Fear of long words
outer heaven
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: london, england
Posted: 6th Feb 2006 23:29
thanks again peeps for tryin to help me out. all your suggestions have been thought over (trust me they have lol)

please keep the help up as every post makes me more aware of how i can achieve this... pizza sales system lol.

thanks again.

rokafella

lol and i will also post my results on this page on wednesday.

tricks evolve... spots change... trends fade... skateboarding is forever.
UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 6th Feb 2006 23:42
Yay! The pizza ad is back again


Hippopotomonstrosesquippedaliophobia-Fear of long words
x1b
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location:
Posted: 7th Feb 2006 01:27 Edited at: 7th Feb 2006 03:02
Here. Just rolled in from work. Tired and hungry..and coding weird pizza stuff. This can be better and isnt made to be efficient, but works.

Quote: "thanks again peeps for tryin to help me out. all your suggestions have been thought over (trust me they have lol)"


I seriousley doubt you've thought anything more than "gimmeh teh c0d3z"

Quote: "please keep the help up as every post makes me more aware of how i can achieve this... pizza sales system lol."


Admit it,you havent done jack sh*t to help your self and take this forum for idiots.



- Do it, Do it Right, Do it right now..
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 7th Feb 2006 01:35
It's not really for a homework assignment... he really works for Pizza Hut... trying to get a programmer to help them without paying $$$.


x1b
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location:
Posted: 7th Feb 2006 01:47 Edited at: 7th Feb 2006 02:36
id be very disappointed to learn that Pizza Hut uses DBP for business software...


And honestly,grog "Mon Sep 22nd 2003" thats near 3 years.. and he couldnt even show some code?

Quote: "book is stupid"
nuff said.

- Do it, Do it Right, Do it right now..
re faze
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 7th Feb 2006 04:43
that sounds rediculously easy....

Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 7th Feb 2006 07:01
Quote: "id be very disappointed to learn that Pizza Hut uses DBP for business software...

And honestly,grog "Mon Sep 22nd 2003" thats near 3 years.. and he couldnt even show some code?"


Yeah but I learned pretty quick when I joined and saw what other people were needing help with... the join date has nothing to do with programming skill and knowledge of Darkbasic.


smallg
Valued Member
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 7th Feb 2006 11:22
ok so x1b's effort is good but u can only order one pizza at a time.
have u seen the prices, last time i go to pizza hut, .

i updated it, just for fun...


life's one big game
spec= 1.6ghz, 512mb ram, 128mb gpu, directx 9.0c, dbpro and classic
x1b
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location:
Posted: 7th Feb 2006 13:10 Edited at: 7th Feb 2006 13:12
lol, smallg, you bastard. one upping my code

But ya,good point. I shoulda thought of that...mind you,when I saw the forumla,I didnt imagine any WOULD want more than one.

- Do it, Do it Right, Do it right now..
outer heaven
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: london, england
Posted: 7th Feb 2006 19:15
okay guys, some of you have been implying im a slow learner, while others have even accused me of working in pizza hut.
ROALMFAO!!!! yes i know i am a noob.

the game creating community never stops ammusing me. anyways, everyone who posted... thanks AGAIN!!!
and while you were quoting me x1b, i have actually been reading up on darkbasic. i have both x1b and smallg to thank. i learned alot from playing around with both your code.

i have wrote in some source code for you all to check out.
i updated both x1b's program and smallb's program so that is allows user error. the user can now go back a step if he/she has made a mistake.

please tell me if i have made any stupid mistakes as i learned most of the stuff last night and this morning.

also one final request. how do i write integers to text files AND how on earth do i UPDATE a text file so that new data can be written to it with out the old stuff being erased.

oh and one more thing, how on earth do i add the date and time the the data entries in the text file.

if any of that made sense please reply lol.

cheers again

rokafella

tricks evolve... spots change... trends fade... skateboarding is forever.
outer heaven
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: london, england
Posted: 7th Feb 2006 19:18


tricks evolve... spots change... trends fade... skateboarding is forever.
x1bwork
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 7th Feb 2006 19:57 Edited at: 7th Feb 2006 20:28
Quote: "i have both x1b and smallg to thank."


bah,now I feel bad. However,there is a flaw in your logic(code). I wont point it out right away but do urge you to go over it a few times and run the program to find what im getting at. If you cant find it in a day, ill point it out and edit the code.

SmallG, dont help him
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 7th Feb 2006 19:59 Edited at: 7th Feb 2006 20:20
(Edited out)

...maybe one day I'll finish a project
x1bwork
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 7th Feb 2006 20:06 Edited at: 7th Feb 2006 20:11
This coming from the guy who says:
Quote: "Visual basic would have been a better choice"



Why in christs name would vb have been better for this?

And if so? What was stopping you from posting any code at all besides sitting here and shooting your mouth off?
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 7th Feb 2006 20:20 Edited at: 7th Feb 2006 20:23
OK sorry - forget I said anything...

But - if you can't understand why VB would be better why did you post this then?
Quote: "id be very disappointed to learn that Pizza Hut uses DBP for business software..."

I'd say VB is more likely to be used for commercial software

Now I'll shut up

...maybe one day I'll finish a project
x1bwork
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 7th Feb 2006 20:31 Edited at: 7th Feb 2006 20:47
Because I wouldnt use VB or DBP for corperate software. I'd write in C++ or Delphi or if CLI only and crossplat form required, perl. Not that C++ isnt crossplatform, but isnt my weapon of choice for CLI, and though Delphi does have Kylix for crossplatform abillity? They would both be far more overhead than perl. And if Crossplatform and GUI required,id likely work with Perl/Qt or Delphi/Kylix.

However,admitedly,that is open for debate. I personally, also favour DarkBasic Professional over Torque and Blitz3Puke.

[edit] In heinsite,if by any act of god,DBP was ported to Linux or the Mac OS X,Line? id very likely go hardcore DBP coder and WOULD write corperate software in dbp.
outer heaven
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: london, england
Posted: 7th Feb 2006 20:33
LOL pwnd!

tricks evolve... spots change... trends fade... skateboarding is forever.
x1bwork
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 7th Feb 2006 21:08 Edited at: 7th Feb 2006 21:44
i'll look at the rest of your questions when I get home.
doubt ill code more of this tonight. trying to stick to my project.

outer heaven
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: london, england
Posted: 7th Feb 2006 23:07
aight thanks. my assignments due tommorow, so even if you dont get to write it in time, thanks a lot for your help.
seriously dude, if it wasnt for you and smallbs helpin me out, i wouldnt stand a chance.
lol

tricks evolve... spots change... trends fade... skateboarding is forever.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 8th Feb 2006 04:47
Quote: "while others have even accused me of working in pizza hut. "


How dare they!!!


outer heaven
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: london, england
Posted: 1st Mar 2006 23:16
hey guys, youve prob forgotten bout my assignment you helped me out with; i said id post my result so here it is...
I PASSED WOOO

thanks all of you!!! for all the help you gave me!!!
i owe all of you one!

tricks evolve... spots change... trends fade... skateboarding is forever.
x1b
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location:
Posted: 1st Mar 2006 23:41
Excellent. My favourite beer is Molson Ex and Sleemans Honey Brown. i'll take one of each and we'll call it even.


Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 5th Mar 2006 21:18
I remember having a similar assignment for pascal. Can't believe I still have the code.




Login to post a reply

Server time is: 2025-05-23 12:46:59
Your offset time is: 2025-05-23 12:46:59