Web Analytics Made Easy -
StatCounter Noob needs help with QBASIC - CodingForum

Announcement

Collapse
No announcement yet.

Noob needs help with QBASIC

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Noob needs help with QBASIC

    I have an assignment due today for my Computer Programming class and, with Easter weekend, my school is closed so I cannot get help from the staff in the lab. This assignment has me completely stumped and I would really appreciate anybody's help! Here is the assignment:

    Good Foods Grocers wants to have the creation of a program that allows entry of prices until the users enters -9999 for the price. These prices must be stored in an array. Then your program will print out each price (excluding the -9999) and the total price to charge added together displayed as a running total. The running total must be displayed after the input of all the numbers as shown below. The last value represents the total price.

    Sample program execution:
    Please enter price of the item (-9999 to exit): 5.35
    Please enter price of the item (-9999 to exit): 8.25
    Please enter price of the item (-9999 to exit): 10.75
    Please enter price of the item (-9999 to exit): 7.35
    Please enter price of the item (-9999 to exit): -9999

    Price Total
    5.35 5.35
    8.25 13.6
    10.75 24.35
    7.35 31.7

    I have the array done but I'm having trouble printing the price/total and calculating the running total of the prices. Once again any help is greatly appreciated.
Working...
X