Display A Complete Algorithm That Determines The Sales Tax On Purchases Under 1

Display a complete algorithm that determines the sales tax on purchases under $1.00 for a 7% sales tax rate be designed. Display the sales tax amount if the number of the cents entered was 99 or less; otherwise, display an error message.
Instead of multiplying the ammount of sales by 7% and rounding, use the following list to determine the exact amount of sales tax:
0 to 7 cents: no tax 
8 to 21 cents: 1 cent tax
22 to 35 cents: 2 cent tax
36 to 49 cents: 3 cent tax
50 to 64 cents: 4 cent tax
65 to 78 cents: 5 cent tax
79 to 92 cents: 6 cent tax
93 to 99 cents: 7 cent tax
 
“Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!”

What Students Are Saying About Us

.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐
"Honestly, I was afraid to send my paper to you, but splendidwritings.com proved they are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"

.......... Customer ID: 14***| Rating: ⭐⭐⭐⭐⭐
"The company has some nice prices and good content. I ordered a term paper here and got a very good one. I'll keep ordering from this website."

"Order a Custom Paper on Similar Assignment! No Plagiarism! Enjoy 20% Discount"