input customer name
input category
input n
if n<=50
price = 0.10*n
else
price = (n-50)*0.8+5.00
end if
output customer name
output category
output n
output price
The Daily Gazette accepts classified ads in several categories. For most ads, the newspaper charges 10 cents per word for the first 50 words, and 8 cents per word for every word after that. Design Visual Logic Flowchart for a program that accepts data about an ad: customer name, ad category (for example, Apartment for rent), and number of words. Display all the input data and the price for the ad.
1 answer