Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need algorithms to perform these calculations in C programming. I know how to do the coding part, I just can't figure out what equations

I need algorithms to perform these calculations in C programming. I know how to do the coding part, I just can't figure out what equations to use to solve the total vines per row and column based on the input information. Thanks for any help image text in transcribed
image text in transcribed
image text in transcribed
Problem: A vineyard owner is planting grapevines in a new field and needs to know how many could possibly be planted in each row or column. There are end-post assemblies that will need to be constructed at each end of the row or column. The user of your program will provide the length of the rows and columns of the field, the length necessary from each row or column to construct the end-posts, and the distance necessary between new grapevines (in each row or column). Calculate and display the area of the field, the number of new vines that could be planted per row, and the number of new vines that could be planted by column. Accept input and display ALL output exactly as seen in the example executions that follow. Carefully read the additional requirements for expectations related to input. Example Execution \#1: Enter the field dimensions [row columns] 105 Enter the space needed for each terminal post 1 Enter the distance between vines 2 Area of field 10 by 5:50 Total vines per row: 1 [total 10] Total vines per column: 3 [total 15] Example Execution \#2: Enter the field dimensions [row columns] 37 Enter the space needed for each terminal post 1 Enter the distance between vines 0 Area of field 3 by 7:21 Total vines per row: 5 [total 15] Total vines per column: 1 [total 7] Example Execution \#3: Enter the field dimensions [row columns] 89 Enter the space needed for each terminal post 2 Enter the distance between vines 1 Area of field 8 by 9:72 Total vines per row: 3 [total 24] Total vines per column: 2 [total 18] Example Execution \#4 [smallest possible field]: Enter the field dimensions [row columns] 33 Enter the space needed for each terminal post 1 Enter the distance between vines 10 Area of field 3 by 3:9 Total vines per row: 1 [total 3] Total vines per column: 1 [total 3]

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

Students also viewed these Databases questions

Question

Choosing Your Topic Researching the Topic

Answered: 1 week ago

Question

The Power of Public Speaking Clarifying the

Answered: 1 week ago