Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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: 3

blur-text-image

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

Select Healthcare Classification Systems And Databases

Authors: Katherine S. Rowell, Ann Cutrell

1st Edition

0615909760, 978-0615909769

More Books

Students also viewed these Databases questions

Question

11. Is the code designed to be reusable?

Answered: 1 week ago