lol i just need some help with this problem. my question is, which statements to consider. Im assuming the "if" statement to start. Remember I'm a complete noob to this and any tips would be greatly appreciated!
here it is:
1. Hey, this is Vermont -- we've got corn!
Write a program that accepts the number of ears of corn the customer is purchasing and outputs the total price. The corn is priced according to the following four statements:
If the customer is purchasing less than a dozen ears, the price per ear is $0.50.
If the customer is purchasing 12 to 23 ears, the price per ear is $0.45.
If the customer is purchasing 24 to 35 ears, the price per ear is $0.40.
If the customer is purchasing more than 35 ears, the price per ear is $0.35.
You will need to use scanf to ask the user for the number of ears of corn being purchased, and then figure out the correct price to display. Ideally, you should only use 2 printfs, one to ask for the number of ears, and one which displays the total price