Problem #2- COURSE FIGHTER | coursefighter.com

Programming – COURSEFIGHER.COM
Problem #2- COURSE FIGHTER | coursefighter.com

During each summer John and Jessica grow vegetables in their back yard and buy seeds and fertilizer from a local nursery. The nursery carries different types of vegetable fertilizers in various bag sizes. When buying a particular fertilizer, they want to know the price of the fertilizer per pound and the cost of fertilizing per square foot. The following program prompts the user to enter the size of the fertilizer bag, in pounds, the cost of the bag, and the area, in square feet, that can be covered by the bag. The program should output the desired result. However, the program contains logic errors. Find and correct the logic errors so that the program works properly.

Enter the amount of fertilizer, in pounds, in one bag: 100

Enter the cost of the 100 pound fertilizer bag: $25

Enter the area, in square feet, that can be fertilized by one bag: 50

The cost of the fertilizer per pound is: $0.25

The cost of fertilizing per square foot is: $0.50

MAKE SURE TO TAKE A SCREENSHOT PLEASE

FOR MORE CHECK OUT OUR WEBSITE COURSEFIGHER.COM

 

PLACE YOUR ORDER NOW