Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

----- C++ ----- It has to look like the box below. Please and thank you so much! some one said na? Lab 2 Assignment L2-2

----- C++ -----
It has to look like the box below. Please and thank you so much! image text in transcribed
some one said na?
Lab 2 Assignment L2-2 Ron bought several acres of farm to grow and sell vegetables. Suppose that one wants to grow a maximum of two types of vegetables. Write a program that prompts one or the user to do the following: 1. Enter the total farm area in acres. 2. The number of vegetables (one or two) that the user wants to grow. 3. If the user wants to grow two types of vegetables, then specified the portion, as a percentage, of the farmland used for each type of vegetable. 4. Enter the seed cost, plantation cost, fertilizing cost, labor cost, for each acre. 5. Enter vegetables selling price per acre. 6. Output the total revenue. 7. Output the profit/loss. CAVohreport2-2.Debu22 John Urrutia L2-2 L2-2.exe Enter farm area in acres: 13 Enter the number of vegetables planted (1/2): 2 Enter the portion (as a percentage) of land used for the first vegetable: 46 Enter first vegetable seed cost per acre: $100 Enter first vegetable plantation cost per acre: $200 Enter first vegetable fertilizing cost per acre: $100 Enter first vegetable labor cost per acre: $100 Enter first vegetable selling cost per acre: $600 Enter second vegetable seed cost per acre: $100 Enter second vegetable plantation cost per acre: $200 Enter second vegetable fertilizing cost per acre: $200 Enter second vegetable labor cost per acre: $100 Enter second vegetable selling cost per acre: $1000 The total revenue is: 10608.00 Profit/loss from farming: $3406.00 Press any key to Exit

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_2

Step: 3

blur-text-image_3

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

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

how to determine the spatial resolution on google earth

Answered: 1 week ago