If you would like to register, please email 2 preferred usernames to oceanfisher@gmail.com. You will be registered and sent instructions.
To start viewing messages,
select the forum that you want to visit from the selection below.

Help with Qbasic PLEASE!

You have been given an algorithm that will prompt a terminal operator for the price of an article and a pricing code. Your program is then to calculate a discount rate according to the pricing code and print to the screen the original price of the article, the discount amount and the new discounted price. Calculate the pricing code and accompanying discount amount as follows:

Pricing codeDiscount rateH50%F40%T33%Q25%Z0%

If the pricing code is Z, then the words ‘No discount’ are to be printed on the screen. If the pricing code is not H, F, T, Q or Z then the words ‘Invalid pricing code’ are to be printed.

Mr./Ms. negative / having a pity party for myself

I'm done with the problem but it will not run. I don't know where my error is. This isn't homework and Qbasic is still used to develop applications. If you can't help be negative somewhere else and I'm sorry you have a spinal injury but I hope you cheer up. I posted in the Computer section and FYI people with spinal injuries use computers

This is the computers forum, but I can't help. Using BASIC or Microsoft is like going back to wearing nappies. Its just not right. I have real aversion. Is BASIC Turing complete? I.e. general purpose. I only remember being snookered by it every time I tried.

I remember a bit of BusinessBASIC, but that is a dialect of FORTRAN for COBOL applications written by PASCAL programmers. Know about FORTRAN, LISP and C.

I'm done with the problem but it will not run. I don't know where my error is. This isn't homework and Qbasic is still used to develop applications. If you can't help be negative somewhere else and I'm sorry you have a spinal injury but I hope you cheer up. I posted in the Computer section and FYI people with spinal injuries use computers

Lol, I just read this. No wonder you can't figure out such a simple programming problem, you are an idiot.

Ah, So BASIC is a 3.5 GL! Auto some times, promote some times, work some times. You have to declare arrays in Bash too. I use full 4GLs like Unix shell and friends. Use it the same way I used to use LISP. See my Unix shell entry in http://en.wikipedia.org/wiki/Complem...ming_languages Unix shell is also the basis of some NoSQL with look, join, etc. Unix V7: Nothing new under the Sun or on the Sun.