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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!