Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help solving this C++ homework. Ron bought several acres of farm to grow and sell vegetables. Suppose that Ron wants to grow a

I need help solving this C++ homework.

Ron bought several acres of farm to grow and sell vegetables. Suppose that Ron wants to grow a maximum of two types of vegetables.

Write a program that prompts Ron or the user to do the following:

Enter the total farm area in acres.

The number of vegetables (one or two) that the user wants to grow.

If the user wants to grow two types of vegetables, then prompt the user to enter the portion (as a percentage) of land used for the first vegetable.

Enter the seed cost, plantation cost, fertilizing cost, labor cost, and selling price per acre.

If the user specified 2 vegetables, prompt the user to enter the items in step 4 for the second vegetable.

The program then outputs -

The total revenue.

The profit/loss.

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_2

Step: 3

blur-text-image_step3

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

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

ISBN: 0805302441, 978-0805302448

More Books

Students also viewed these Databases questions