subject

Summary During each summer, John and Jessica grow vegetables in their backyard 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. Instructions 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. //Logic errors. #include #include using namespace std; int main() { double cost; double area; double bagSize; cout > bagSize; cout > cost; cout > area; cout << endl; cout << "The cost of the fertilizer per pound is: $" << bagSize / cost << endl; cout << "The cost of fertilizing per square foot is: $" << area / cost << endl; return 0; } Format your output with setprecision(2) to ensure the proper number of decimals for testing!

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
Requirement types discussed during software development include functional and color scheme nonfunctional and code style constraint and nonfunctional fashionable and functional.
Answers: 2
question
Computers and Technology, 22.06.2019 21:30
Write a function named printfloatrepresentation(float number) that will print the floating point representation of a number using the format given below. (sign bit) exponent in binary (assumed bit).significandfor example if the number passed an argument is 71 yourprogram should print (0) 10000101 (1).00011100000000000000000similarly if the number passed to the function as argument is -71 the program should print (1) 10000101 (1).00011100000000000000000
Answers: 3
question
Computers and Technology, 22.06.2019 21:30
Nathan wants to create multiple worksheet containing common formatting styles for his team members. which file extension him to save these worksheets? nathan to create multiple worksheets with common styles. he needs to save them with the extension.
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Visually impaired individuals generally rely on the for navigation. thus, designers need to ensure that mouse-specific inputs, such as pointing, clicking, and hovering, can be done without a mouse.
Answers: 1
You know the right answer?
Summary During each summer, John and Jessica grow vegetables in their backyard and buy seeds and fer...
Questions
question
Biology, 17.12.2021 14:10
question
History, 17.12.2021 14:10
question
English, 17.12.2021 14:10
question
Mathematics, 17.12.2021 14:20
question
History, 17.12.2021 14:20
Questions on the website: 13722363