TURING PROGRAMMING HELP, PLEAASE!?

TURING PROGRAMMING HELP, PLEAASE!?

I need a program for school, that reads a barcode and outputs a receipt. I am in the beginning stages and I am kinda lost. I have this:

var barCode:int
var cost:real
get cost

case barCode of
label 12345:cost:= 25.99
label 23456:cost:= 65.99
label 54321:cost:= 225.00
label 98765:cost:= 200.00
label 24580:cost:= 34.99
label 35791:cost:= 289.99
label 65789:cost:= 12.00
label 43543:cost:= 250.99
label 76543:cost:= 366.99
label 55544:cost:= 150.00
end case

^I realize I still have far too go, but I need to complete the trchnical aspects first. When I do this, I get a warning that the range of cases is too high and it shuts down without saving. Why?
Could someone help me and possibly give me a contact email, where I could ask them questions? Deepy appreciated!
How would I change it to a decimal value?

Tags: , , ,

Under Forum

1 Comment for TURING PROGRAMMING HELP, PLEAASE!?

  • 1. Man Beast  |  February 15th, 2011 at 9:12 am

    You have to set it as a decimal value

Leave a Comment for TURING PROGRAMMING HELP, PLEAASE!?

You must be logged in to post a comment.

Trackback this post  |  Subscribe to the comments via RSS Feed


Categories