ok I hope this doesn’t get locked but this is the only place I can go to get help. ive tried googling it but i cant find anything. So to keep me from failing my college class, please help.
Ok my teacher wants me to replace my PRINT command with something else so that more data will be displayed. Does anyone know what commands can replace PRINT in order to display something else? Here is my program.
REM description: this program calculates
REM the billing amount for a
REM company running a copying
REM service
REM---------------------------------------
REM *The first 500 copies are billed at
REM 5 cents per copy
REM
REM *The next 500 copies are billed at
REM 4 cents per copy
REM
REM *Any additional copies are billed at
REM 3 cents per copy
REM---------------------------------------
REM Customer Copies
REM -----------------------------
REM XYZ Amalgamated 1,200
REM ABC Industries 200
REM TR Systems Limited 800
REM
REM***************************************
CLS
PRINT "Customer: Billing Amount:"
PRINT " "
READ cust$, Copies
DO WHILE cust$ <> "end"
IF Copies > 1000 THEN
LET a = ((Copies - 1000) * .03) + 45
PRINT cust$; " $"; a
ELSEIF Copies > 500 THEN
LET b = ((Copies - 500) * .04) + 25
PRINT cust$; " $"; b
ELSE
LET c = Copies * .05
PRINT cust$; " $"; c
END IF
READ cust$, Copies
LOOP
REM**************data statnments**********
DATA "xyz Amalgamated", 1200
DATA "ABC Industries", 200
DATA "TR Systems Limited", 800
DATA "end",
END
-
*brain failure*
-
This thing right here --------> " Im pretty sure it recognizes that as PRINT. [Edited on 12/12/2005]
-
[quote][b]Posted by:[/b] lilshorty6478 *brain failure*[/quote] its actually a very simple program. if u brain failed i would try upgrading ur RAM
-
wtf !?! *head explodes*
-
[quote][b]Posted by:[/b] MCs-blam!- This thing right here --------> " Im pretty sure it recognizes that as PRINT.[/quote] really i didn’t know that, but i don’t think that’s what he wants. i think he wants it to display like the data differently on the output screen
-
hehe. post this in zanzibar and see what happens.
-
[quote][b]Posted by:[/b] XxTaterSaladxX wtf !?! *head explodes*[/quote] Wow if ur head is exploding i would seriously consult a geek. u may have a virus
-
This is a simple program. You shouldnt have brain failure.
-
[quote][b]Posted by:[/b] richcricketz [quote][b]Posted by:[/b] XxTaterSaladxX wtf !?! *head explodes*[/quote] Wow if ur head is exploding i would seriously consult a geek. u may have a virus [/quote] . [Edited on 12/12/2005]
-
[quote][b]Posted by:[/b] XxTaterSaladxX hehe. post this in Zanzibar and see what happens. [/quote] i can tell u what would happen right now. shaskta takes one look at it, pulls up my IP address, finds my home address, drives to Arizona, and blacklists my account with my own computer
-
[quote][b]Posted by:[/b] richcricketz [quote][b]Posted by:[/b] XxTaterSaladxX hehe. post this in Zanzibar and see what happens. [/quote] i can tell u what would happen right now. shaskta takes one look at it, pulls up my IP address, finds my home address, drives to Arizona, and blacklists my account with my own computer [/quote] u mean shishka?
-
[quote][b]Posted by:[/b] MCs-blam!- This thing right here --------> " Im pretty sure it recognizes that as PRINT.[/quote] nope not working. got any other ideas
-
[quote][b]Posted by:[/b] XxTaterSaladxX [quote][b]Posted by:[/b] richcricketz [quote][b]Posted by:[/b] XxTaterSaladxX hehe. post this in Zanzibar and see what happens. [/quote] i can tell u what would happen right now. shaskta takes one look at it, pulls up my IP address, finds my home address, drives to Arizona, and blacklists my account with my own computer [/quote] u mean shishka?[/quote] Hey i live in Arizona. Wait i mean *head implodes*
-
[quote][b]Posted by:[/b] XxTaterSaladxX u mean shishka?[/quote] yea i mean shishka. but considering its not a real word...i can never rember how to spell it
-
[quote][b]Posted by:[/b] dr rocko Hey i live in Arizona. Wait i mean *head implodes*[/quote] yea, ime sitting at the mesa community college library right now. Seems I am one of a few slackers still doing home work on the 12 of December
-
Doing homework on a school day? What have you become!
-
[quote][b]Posted by:[/b] dr rocko Doing homework on a school day? What have you become![/quote] Dude school is out in like 2 days. i should be studying my ass off for finals, not trying to finish some programs from like 2 months ago. Now does anyone know what i can replace PRINT with!!?? hey mods are smart i bet they could answer my question. o wait if they were smart they wouldn’t be mods. jk but i had to do it hahahaa [Edited on 12/12/2005]
-
if i dont figure this out my teacher WILL fail me
-
[url=http://www.bungie.net/Account/Profile.aspx?memberID=98421]PM this guy.[/url] He should be able to help. I would like to help but I know a little C++ and Delphi5 but thats it.
-
[quote][b]Posted by:[/b] WarLordLAN [url=http://www.bungie.net/Account/Profile.aspx?memberID=9842 1]PM this guy.[/url] He should be able to help. I would like to help but I know a little C++ and Delphi5 but thats it.[/quote] thanks dude, i hope i just PM'd bill gates cuz i think he is the only person who can help me now
-
Sorry I don't know qbasic. You could post this in the [url=http://www.bungie.net/fanclub/81112/Forums/topics.aspx?f orumID=87069]Mathematics Group[/url] and get an answer from kwinse. If it was c I might be able to help. I'm not sure I understand the issue either. What is it doing wrong, and what would you like it to do. I maybe able to google it. [Edited on 12/12/2005]
-
[quote][b]Posted by:[/b] kd5shw Sorry I don't know qbasic. You could post this in the [url=http://www.bungie.net/fanclub/81112/Forums/topics.aspx?f orumID=87069]Mathematics Group[/url] and get an answer from kwinse. If it was c I might be able to help.[/quote] error error..cannot find link. yea we all know c++, nothing special lol
-
[url=http://www.bungie.net/fanclub/mathematics/GroupHome.aspx ]fixed[/url] I'm not sure I understand the problem you are having too well either. What do you mean by "more data"? [Edited on 12/12/2005]
-
[quote][b]Posted by:[/b] kd5shw [url=http://www.bungie.net/fanclub/mathematics/GroupHome.aspx ]fixed[/url] I'm not sure I understand the problem you are having too well either. What do you mean by "more data".[/quote] Neither do i...but...i think he wants it to display the data in a different way. a different look if u will
-
Do you mean like changing the form background, font size, centering, etc.? Or do you mean like displaying 5 as 5.00 or something like that? In Visual BASIC you use FormatNumber and FormatCurrency for the latter. I don't know if it's the same for QBASIC though. Maybe it's because you have "$" in your print statement. In VB, if you use FormatCurrency, the "$" will appear automatically.
-
I'm a Junior in high school and taking a Design and Logic programming class (both QBASIC and Visual Basic are in the curriculum). Even [b]I[/b] don't understand what you mean by different displays for output info. Sorry.... [Edited on 12/12/2005]