Yes -- the program is correct.
Remember "percentage" means "parts per 100," so to calculate "how many" given a percentage you have to divide by 100:
LET Discard = TotalChocolates * (DiscardPercent / 100)
The program writes:
You will eat 110 chocolates and throw away 90 chocolates.
Write a QBasic program that solves the following problem: You have rented an automobile at $26.59 a day plus 31 cents per mile. After three days you return the car with 253 miles driven. How much does the car rental cost?
Use two variables DAYS and MILES to hold values.