hello, i am learning qbasic for a class in high school. This is my senior year and i have an opportunity for an internship for a programming position but extended the date so i could learn more about coding using html , css, etc. ........Im getting off topic. Well i was working with my teacher and we were going over "sub" functions .
here is the question.
"Write a SUB procedure that determines the unit price (cents per ounce) of different boxes of laundry detergent. The input should include the weight in pounds and ounces as well as the total price. The output should state the price per ounce".
here is our code.
SUB GET.DATA (LBS,OZ,PRICE)
INPUT "PLEASE ENTER THE WEIGHT OF YOUR LAUNDRY DETERGENT IN POUNDS"; WLB
INPUT "PLEASE ENTER THE WEIGHT OF YOUR LAUNDRY DETERGENT IN OUNCES"; WOZ
INPUT "PLEASE ENTER THE TOTAL PRICE OF YOUR LAUNDRY DETERGENT"; PRICE
PPO = PRICE/TOZ
The program tells me that theres an "expected ( on current line" for the line that contains"SUB GET.DATA (LBS,OZ,PRICE)"and we dont know how to fix it.........any help would be appreciated