Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this assignment, you will help an independent farmer get the right amount of fertilizer for their land so they can optimize their production. You

For this assignment, you will help an independent farmer get the right amount of fertilizer for their land so they can optimize their production. You need to create a program that:

(1) Prompts the user to enter the size (width and depth) in feet. Calculate and output the wall's area (as an integer).

(2) Extend the program to calculate and output the amount of fertilizer in pounds needed for the field (floating point). Assume a pound of fertilizer covers 1000 square feet (store this value in a variable). Output the amount of fertilizer needed using the %f conversion specifier.

(3) Extend the program again to calculate and output the number of 1 pound bags needed to fertilize the field. Hint: Use a math function to round up to the nearest pound.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions