Write the program to solve the problem shown in problem #1 in the Logic Quiz.
start
var1 = 10
var2 = 20
wksum = 0
rslt = 0
do while var2 < 30
wksum = var1 + var2
if wksum > 30
var1 = var1 - 2
var2 = var2 + 1
else
var1 = var1 - 1
var2 = var2 + 3
end if
end while loop
rslt = var1 + var2
display rslt
end
You have a product that is on sale. Each day of the sale, the price drops 10% from its previous
price. The sale lasts for 4 days. You should write a program that processes this problem using a loop.
Each pass through the loop should generate the sale price for a a day of the sale and display that price
along with the day number.
You are depositing money in an account. You deposit different amounts each week. No deposit can be
over $500. When you have deposited $2000 you want to end the program and tell how many weeks it took to
reach the goal and the total amount of the deposits.