Question
Write the following program in C++ A vineyard owner is planting several new rows of grapevines, and needs to know how many grapevines to plant
Write the following program in C++
A vineyard owner is planting several new rows of grapevines, and needs to know how many grapevines to plant in each row. She has determined that after measuring the lenght of a future row, she can use the following formula to calculate the number of vines that will fit in the row, along with the trellis end post assemblies that will need to be constructed at each end of the row:
v=R-2E/S
The terms in the fomula are V=the number of grape vines that will fit in the row
R is the lenght of the row, in feet
E is the amount of space, in feet used by an end post assembly
S is the space between vine, in feet
Write a program that makes the calculation for the vineyard owner.
the rows are 275ft in lenght the trellis is 9 ft adn the spaccing of plants in 5 ft
the program should caluclate and display the number of grapevines thagt will fit in the row
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started