Asked by Tom
Design a pseudocode for a program that accepts an ice cream flavor the price per gallon and number of gallons sold a year, display a message this flavor is the best seller having more than 40000 gallons a year sold
Answers
Answered by
bobpursley
data entry:
accept "flavor"
accept "price per gallon"
accept "number gallons sold in year"
return to data entry unless flavor is ""
sort data files by gallons sold
if first file has gallons sold > 40,000
print "file" ;"best seller with";"gallons sold.
otherwise end
end
accept "flavor"
accept "price per gallon"
accept "number gallons sold in year"
return to data entry unless flavor is ""
sort data files by gallons sold
if first file has gallons sold > 40,000
print "file" ;"best seller with";"gallons sold.
otherwise end
end
There are no AI answers yet. The ability to request AI answers is coming soon!