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, 23.06.2019 07:30
What is the original authority for copyright laws
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Kenny works with an it company. his company is about to launch new software in the market. he has to ensure that this new software is functional and meets all of the quality standards set up at the planning stage. which job profile is kenny likely to have? kenny is likely to have the job profile of a blank .
Answers: 2
question
Computers and Technology, 24.06.2019 16:00
Which type of cloud computing offers easily accessible software and applications on the machines
Answers: 1
question
Computers and Technology, 25.06.2019 09:30
Which resource produces the cleanest energy? -coal -gasoline -oil -wind
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
History, 25.09.2021 01:00
question
Mathematics, 25.09.2021 01:00
question
Mathematics, 25.09.2021 01:00
question
Mathematics, 25.09.2021 01:00
Questions on the website: 13722367